Differences From Artifact [aae2bdffb1]:
- File
src/SSLInvalidCertificateException.m
— part of check-in
[f009f4af94]
at
2012-11-21 22:26:06
on branch trunk
— configure: Don't use -Wcast-align.
The OpenSSL headers break -Wcast-align. (user: js, size: 2103) [annotate] [blame] [check-ins using]
To Artifact [5490fca0bd]:
- File src/SSLInvalidCertificateException.m — part of check-in [eca3b894f8] at 2013-02-12 17:49:20 on branch trunk — Prefix all ivars with an underscore. (user: js, size: 2194) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 | /* * Copyright (c) 2011, Florian Zeitz <florob@babelmonkeys.de> * * https://webkeks.org/git/?p=objopenssl.git * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice is present in all copies. * | > | 1 2 3 4 5 6 7 8 9 10 | /* * Copyright (c) 2011, Florian Zeitz <florob@babelmonkeys.de> * Copyright (c) 2013, Jonathan Schleifer <js@webkeks.org> * * https://webkeks.org/git/?p=objopenssl.git * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice is present in all copies. * |
︙ | ︙ | |||
17 18 19 20 21 22 23 24 25 26 27 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import "SSLInvalidCertificateException.h" #import <ObjFW/OFNotImplementedException.h> @implementation SSLInvalidCertificateException | > > | | | | | | | | | | | | | | | | | 18 19 20 21 22 23 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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import "SSLInvalidCertificateException.h" #import <ObjFW/macros.h> #import <ObjFW/OFNotImplementedException.h> @implementation SSLInvalidCertificateException + exceptionWithClass: (Class)class reason: (OFString*)reason { return [[[self alloc] initWithClass: class reason: reason] autorelease]; } - initWithClass: (Class)class { Class c = [self class]; [self release]; @throw [OFNotImplementedException exceptionWithClass: c selector: _cmd]; } - initWithClass: (Class)class reason: (OFString*)reason { self = [super initWithClass: class]; @try { _reason = [reason copy]; } @catch (id e) { [self release]; @throw e; } return self; } - (void)dealloc { [_reason release]; [super dealloc]; } - (OFString*)description { if (_description != nil) return _description; _description = [[OFString alloc] initWithFormat: @"Invalid certificate! Reason: %@", _reason]; return _description; } - (OFString*)reason { OF_GETTER(_reason, NO) } @end |