Conform to OFTLSSocket.
Still a few FIXMEs / TODOs.
This commit is contained in:
parent
89c705d9ed
commit
ecbaa8ed20
3 changed files with 64 additions and 72 deletions
|
@ -21,12 +21,12 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#import "SSLInvalidCertificateException.h"
|
||||
|
||||
#import <ObjFW/macros.h>
|
||||
|
||||
#import <ObjFW/OFNotImplementedException.h>
|
||||
|
||||
@implementation SSLInvalidCertificateException
|
||||
+ exceptionWithClass: (Class)class
|
||||
reason: (OFString*)reason
|
||||
|
@ -37,10 +37,14 @@
|
|||
|
||||
- initWithClass: (Class)class
|
||||
{
|
||||
Class c = [self class];
|
||||
[self release];
|
||||
@throw [OFNotImplementedException exceptionWithClass: c
|
||||
selector: _cmd];
|
||||
@try {
|
||||
[self doesNotRecognizeSelector: _cmd];
|
||||
} @catch (id e) {
|
||||
[self release];
|
||||
@throw e;
|
||||
}
|
||||
|
||||
abort();
|
||||
}
|
||||
|
||||
- initWithClass: (Class)class
|
||||
|
|
Reference in a new issue