ObjOpenSSL  Diff

Differences From Artifact [c4807a7400]:

To Artifact [0371d9e9ba]:


33
34
35
36
37
38
39
40

41
42
43
44
45

46
47


48
49
50
51
52
53
54
55
56
57
58
33
34
35
36
37
38
39

40
41
42
43
44

45
46
47
48
49
50
51
52
53

54
55
56
57
58
59







-
+




-
+


+
+




-






#import <ObjFW/OFTCPSocket.h>
#import <ObjFW/OFTLSSocket.h>

OF_ASSUME_NONNULL_BEGIN

@class X509Certificate;

@interface SSLSocket: OFTCPSocket <OFTLSSocket>
@interface SSLSocket: OFTLSSocket
{
	SSL *_SSL;
	OFString *_certificateFile, *_privateKeyFile;
	const char *_privateKeyPassphrase;
	bool _verifiesCertificates, _requestsClientCertificates;
	bool _requestsClientCertificates;
}

@property (copy, nonatomic) OFString *certificateFile, *privateKeyFile;
@property (nonatomic) const char *privateKeyPassphrase;
@property (nonatomic) bool requestsClientCertificates;
@property OF_NULLABLE_PROPERTY (readonly, nonatomic)
    X509Certificate *peerCertificate;

- (instancetype)initWithSocket: (OFTCPSocket *)socket;
- (OFData *)channelBindingDataWithType: (OFString *)type;
- (nullable X509Certificate *)peerCertificate;
- (void)verifyPeerCertificate;
@end

OF_ASSUME_NONNULL_END