Conform to OFTLSSocket.

Still a few FIXMEs / TODOs.
This commit is contained in:
Jonathan Schleifer 2013-03-31 12:04:53 +02:00
parent 89c705d9ed
commit ecbaa8ed20
3 changed files with 64 additions and 72 deletions

View file

@ -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