Differences From Artifact [127e317cb2]:
- File
src/SSLSocket.h
— 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: 1861) [annotate] [blame] [check-ins using]
To Artifact [536accb4df]:
- File
src/SSLSocket.h
— part of check-in
[071d74e840]
at
2015-05-24 19:33:09
on branch trunk
— Conform to OFTLSSocket
This also introduces automatic certificate verification and enables it
by default, as required by OFTLSSocket.There are still TODOs until OFTLSSocket is fully implemented. (user: js, size: 1974) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
29 30 31 32 33 34 35 | @class X509Certificate; @interface SSLSocket: OFTCPSocket <OFTLSSocket> { SSL *_SSL; OFString *_certificateFile, *_privateKeyFile; const char *_privateKeyPassphrase; | > | > | | | | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | @class X509Certificate; @interface SSLSocket: OFTCPSocket <OFTLSSocket> { SSL *_SSL; OFString *_certificateFile, *_privateKeyFile; const char *_privateKeyPassphrase; bool _certificateVerificationEnabled; bool _requestClientCertificatesEnabled; } #ifdef OF_HAVE_PROPERTIES @property (getter=isRequestClientCertificatesEnabled) bool requestClientCertificatesEnabled; #endif - initWithSocket: (OFTCPSocket*)socket; - (void)SSL_super_close; - (void)setRequestClientCertificatesEnabled: (bool)enabled; - (bool)isRequestClientCertificatesEnabled; - (OFDataArray*)channelBindingDataWithType: (OFString*)type; - (X509Certificate*)peerCertificate; - (void)verifyPeerCertificate; @end |