Add methods enabling certificate verification
This commit is contained in:
parent
a4ab82d900
commit
8a7c60fe1c
4 changed files with 153 additions and 0 deletions
|
@ -24,6 +24,8 @@
|
|||
|
||||
#import <ObjFW/OFTCPSocket.h>
|
||||
|
||||
@class X509Certificate;
|
||||
|
||||
@interface SSLSocket: OFTCPSocket
|
||||
{
|
||||
SSL *ssl;
|
||||
|
@ -44,4 +46,6 @@
|
|||
- (void)setCertificateFile: (OFString*)file;
|
||||
- (OFString*)certificateFile;
|
||||
- (OFDataArray*)channelBindingDataWithType: (OFString*)type;
|
||||
- (X509Certificate*)peerCertificate;
|
||||
- (void)verifyPeerCertificate;
|
||||
@end
|
||||
|
|
Reference in a new issue