Overview
Comment: | Adjust to ObjFW changes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
aab1410a4bcaaa6911db4b41f0239559 |
User & Date: | js on 2016-03-06 17:48:01 |
Other Links: | manifest | tags |
Context
2016-07-09
| ||
20:12 | Update buildsys check-in: 045b806a83 user: js tags: trunk | |
2016-03-06
| ||
17:48 | Adjust to ObjFW changes check-in: aab1410a4b user: js tags: trunk | |
2015-05-24
| ||
19:33 | Conform to OFTLSSocket check-in: 071d74e840 user: js tags: trunk | |
Changes
Modified src/SSLInvalidCertificateException.h from [62fcaa9a42] to [a32c7b3001].
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 | - - - | #import <ObjFW/OFException.h> @interface SSLInvalidCertificateException: OFException { OFString *_reason; } |
Modified src/SSLInvalidCertificateException.m from [6fabfe1bec] to [4caf75130c].
︙ | |||
24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | + + | #include <stdlib.h> #import "SSLInvalidCertificateException.h" #import <ObjFW/macros.h> @implementation SSLInvalidCertificateException @synthesize reason = _reason; + exceptionWithReason: (OFString*)reason { return [[[self alloc] initWithReason: reason] autorelease]; } - init { |
︙ | |||
67 68 69 70 71 72 73 | 69 70 71 72 73 74 75 76 | - - - - - | } - (OFString*)description { return [OFString stringWithFormat: @"Invalid certificate! Reason: %@", _reason]; } |
Modified src/SSLSocket.h from [536accb4df] to [ec5826ebd6].
︙ | |||
33 34 35 36 37 38 39 | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | - - - - | SSL *_SSL; OFString *_certificateFile, *_privateKeyFile; const char *_privateKeyPassphrase; bool _certificateVerificationEnabled; bool _requestClientCertificatesEnabled; } |
Modified src/SSLSocket.m from [cd16825332] to [a51bf1f765].
︙ | |||
85 86 87 88 89 90 91 92 93 94 95 96 97 98 | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | + + + + + + + | if (mode & CRYPTO_LOCK) of_mutex_lock(&ssl_mutexes[n]); else of_mutex_unlock(&ssl_mutexes[n]); } @implementation SSLSocket @synthesize delegate = _delegate, certificateFile = _certificateFile; @synthesize privateKeyFile = _privateKeyFile; @synthesize privateKeyPassphrase = privateKeyPassphrase; @synthesize certificateVerificationEnabled = _certificateVerificationEnabled; @synthesize requestClientCertificatesEnabled = _requestClientCertificatesEnabled; + (void)load { of_tls_socket_class = self; } + (void)initialize { |
︙ | |||
326 327 328 329 330 331 332 | 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | { if (_SSL != NULL && SSL_pending(_SSL) > 0) return true; return [super hasDataInReadBuffer]; } |
︙ |
Modified src/X509Certificate.h from [0092402ee7] to [ecba294ad5].
︙ | |||
53 54 55 56 57 58 59 | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | - - - - | { X509 *_certificate; OFDictionary *_issuer; OFDictionary *_subject; OFDictionary *_subjectAlternativeName; } |
︙ |