Modernize the code a little
This commit is contained in:
parent
c428df9b60
commit
cd3d39a9c2
8 changed files with 125 additions and 51 deletions
|
@ -26,6 +26,8 @@
|
|||
#import <ObjFW/OFTCPSocket.h>
|
||||
#import <ObjFW/OFTLSSocket.h>
|
||||
|
||||
OF_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class X509Certificate;
|
||||
|
||||
@interface SSLSocket: OFTCPSocket <OFTLSSocket>
|
||||
|
@ -37,12 +39,14 @@
|
|||
bool _requestClientCertificatesEnabled;
|
||||
}
|
||||
|
||||
@property (getter=isRequestClientCertificatesEnabled)
|
||||
@property (nonatomic, getter=isRequestClientCertificatesEnabled)
|
||||
bool requestClientCertificatesEnabled;
|
||||
@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
|
||||
X509Certificate *peerCertificate;
|
||||
|
||||
- initWithSocket: (OFTCPSocket *)socket;
|
||||
- (void)SSL_super_close;
|
||||
- (OFDataArray *)channelBindingDataWithType: (OFString *)type;
|
||||
- (X509Certificate *)peerCertificate;
|
||||
- (void)verifyPeerCertificate;
|
||||
- (nullable X509Certificate *)peerCertificate;
|
||||
@end
|
||||
|
||||
OF_ASSUME_NONNULL_END
|
||||
|
|
Reference in a new issue