Add methods enabling certificate verification

This commit is contained in:
Florian Zeitz 2011-10-24 01:39:48 +02:00
parent a4ab82d900
commit 8a7c60fe1c
4 changed files with 153 additions and 0 deletions

View file

@ -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