Fix compilation with GCC

This commit is contained in:
Jonathan Schleifer 2017-08-01 21:03:59 +02:00
parent 2905f7cd66
commit 2ef2132444
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
3 changed files with 4 additions and 3 deletions

View file

@ -53,10 +53,10 @@ OF_ASSUME_NONNULL_BEGIN
verifyResult: (long)verifyResult;
- initWithHost: (OFString *)host
port: (uint16_t)port
socket: (SSLSocket *)socket OF_UNAVAILABLE;
socket: (id)socket OF_UNAVAILABLE;
- initWithHost: (OFString *)host
port: (uint16_t)port
socket: (SSLSocket *)socket
socket: (id)socket
errNo: (int)errNo OF_UNAVAILABLE;
- initWithHost: (OFString *)host
port: (uint16_t)port

View file

@ -33,6 +33,7 @@ OF_ASSUME_NONNULL_BEGIN
@interface SSLSocket: OFTCPSocket <OFTLSSocket>
{
SSL *_SSL;
id <OFTLSSocketDelegate> _delegate;
OFString *_certificateFile, *_privateKeyFile;
const char *_privateKeyPassphrase;
bool _certificateVerificationEnabled;

View file

@ -97,7 +97,7 @@ locking_callback(int mode, int n, const char *file, int line)
@implementation SSLSocket
@synthesize delegate = _delegate, certificateFile = _certificateFile;
@synthesize privateKeyFile = _privateKeyFile;
@synthesize privateKeyPassphrase = privateKeyPassphrase;
@synthesize privateKeyPassphrase = _privateKeyPassphrase;
@synthesize certificateVerificationEnabled = _certificateVerificationEnabled;
@synthesize requestClientCertificatesEnabled =
_requestClientCertificatesEnabled;