Make it possible to request client certificates.

This commit is contained in:
Jonathan Schleifer 2013-01-19 00:01:38 +01:00
parent 9ce891d19b
commit 380d99c7dc
2 changed files with 17 additions and 0 deletions

View file

@ -32,11 +32,13 @@
SSL *ssl;
OFString *privateKeyFile;
OFString *certificateFile;
BOOL requestsClientCertificates;
}
#ifdef OF_HAVE_PROPERTIES
@property (copy) OFString *privateKeyFile;
@property (copy) OFString *certificateFile;
@property BOOL requestsClientCertificates;
#endif
- initWithSocket: (OFTCPSocket*)socket;
@ -49,6 +51,8 @@
- (OFString*)privateKeyFile;
- (void)setCertificateFile: (OFString*)file;
- (OFString*)certificateFile;
- (void)setRequestsClientCertificates: (BOOL)enabled;
- (BOOL)requestsClientCertificates;
- (OFDataArray*)channelBindingDataWithType: (OFString*)type;
- (X509Certificate*)peerCertificate;
- (void)verifyPeerCertificate;