Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit 2ef2132

Browse files
committed
Fix compilation with GCC
1 parent 2905f7c commit 2ef2132

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/SSLConnectionFailedException.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ OF_ASSUME_NONNULL_BEGIN
5353
verifyResult: (long)verifyResult;
5454
- initWithHost: (OFString *)host
5555
port: (uint16_t)port
56-
socket: (SSLSocket *)socket OF_UNAVAILABLE;
56+
socket: (id)socket OF_UNAVAILABLE;
5757
- initWithHost: (OFString *)host
5858
port: (uint16_t)port
59-
socket: (SSLSocket *)socket
59+
socket: (id)socket
6060
errNo: (int)errNo OF_UNAVAILABLE;
6161
- initWithHost: (OFString *)host
6262
port: (uint16_t)port

src/SSLSocket.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ OF_ASSUME_NONNULL_BEGIN
3333
@interface SSLSocket: OFTCPSocket <OFTLSSocket>
3434
{
3535
SSL *_SSL;
36+
id <OFTLSSocketDelegate> _delegate;
3637
OFString *_certificateFile, *_privateKeyFile;
3738
const char *_privateKeyPassphrase;
3839
bool _certificateVerificationEnabled;

src/SSLSocket.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ - (void)SSL_super_close;
9797
@implementation SSLSocket
9898
@synthesize delegate = _delegate, certificateFile = _certificateFile;
9999
@synthesize privateKeyFile = _privateKeyFile;
100-
@synthesize privateKeyPassphrase = privateKeyPassphrase;
100+
@synthesize privateKeyPassphrase = _privateKeyPassphrase;
101101
@synthesize certificateVerificationEnabled = _certificateVerificationEnabled;
102102
@synthesize requestClientCertificatesEnabled =
103103
_requestClientCertificatesEnabled;

0 commit comments

Comments
 (0)