Differences From Artifact [55bf9206f9]:
- File
src/SSLInvalidCertificateException.m
— part of check-in
[4192ab66c8]
at
2013-03-31 10:04:53
on branch trunk
— Conform to OFTLSSocket.
Still a few FIXMEs / TODOs. (user: js, size: 2105) [annotate] [blame] [check-ins using]
To Artifact [f22e54e351]:
- File src/SSLInvalidCertificateException.m — part of check-in [93fb0bd595] at 2013-06-23 11:10:33 on branch trunk — Adjust to reworked exception API. (user: js, size: 1962) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
24 25 26 27 28 29 30 | #include <stdlib.h> #import "SSLInvalidCertificateException.h" #import <ObjFW/macros.h> @implementation SSLInvalidCertificateException | < | | < | < | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | #include <stdlib.h> #import "SSLInvalidCertificateException.h" #import <ObjFW/macros.h> @implementation SSLInvalidCertificateException + exceptionWithReason: (OFString*)reason { return [[[self alloc] initWithReason: reason] autorelease]; } - init { @try { [self doesNotRecognizeSelector: _cmd]; } @catch (id e) { [self release]; @throw e; } abort(); } - initWithReason: (OFString*)reason { self = [super init]; @try { _reason = [reason copy]; } @catch (id e) { [self release]; @throw e; } |
︙ | ︙ | |||
68 69 70 71 72 73 74 | [super dealloc]; } - (OFString*)description { return [OFString stringWithFormat: | | < | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | [super dealloc]; } - (OFString*)description { return [OFString stringWithFormat: @"Invalid certificate! Reason: %@", _reason]; } - (OFString*)reason { OF_GETTER(_reason, false) } @end |