@@ -87,10 +87,17 @@ else of_mutex_unlock(&ssl_mutexes[n]); } @implementation SSLSocket +@synthesize delegate = _delegate, certificateFile = _certificateFile; +@synthesize privateKeyFile = _privateKeyFile; +@synthesize privateKeyPassphrase = privateKeyPassphrase; +@synthesize certificateVerificationEnabled = _certificateVerificationEnabled; +@synthesize requestClientCertificatesEnabled = + _requestClientCertificatesEnabled; + + (void)load { of_tls_socket_class = self; } @@ -328,70 +335,32 @@ return true; return [super hasDataInReadBuffer]; } -- (void)setDelegate: (id )delegate -{ - /* TODO */ - OF_UNRECOGNIZED_SELECTOR -} - -- (id )delegate -{ - /* TODO */ - OF_UNRECOGNIZED_SELECTOR -} - -- (void)setCertificateFile: (OFString*)certificateFile -{ - OF_SETTER(_certificateFile, certificateFile, true, 1) -} - - (void)setCertificateFile: (OFString*)certificateFile forSNIHost: (OFString*)SNIHost { /* TODO */ OF_UNRECOGNIZED_SELECTOR } -- (OFString*)certificateFile -{ - OF_GETTER(_certificateFile, true) -} - - (OFString*)certificateFileForSNIHost: (OFString*)SNIHost { /* TODO */ OF_UNRECOGNIZED_SELECTOR } -- (void)setPrivateKeyFile: (OFString*)privateKeyFile -{ - OF_SETTER(_privateKeyFile, privateKeyFile, true, 1) -} - - (void)setPrivateKeyFile: (OFString*)privateKeyFile forSNIHost: (OFString*)SNIHost { /* TODO */ OF_UNRECOGNIZED_SELECTOR } -- (OFString*)privateKeyFile -{ - OF_GETTER(_privateKeyFile, true) -} - - (OFString*)privateKeyFileForSNIHost: (OFString*)SNIHost { - /* TODO */ - OF_UNRECOGNIZED_SELECTOR -} - -- (void)setPrivateKeyPassphrase: (const char*)privateKeyPassphrase -{ /* TODO */ OF_UNRECOGNIZED_SELECTOR } - (void)setPrivateKeyPassphrase: (const char*)privateKeyPassphrase @@ -399,42 +368,16 @@ { /* TODO */ OF_UNRECOGNIZED_SELECTOR } -- (const char*)privateKeyPassphrase -{ - /* TODO */ - OF_UNRECOGNIZED_SELECTOR -} - - (const char*)privateKeyPassphraseForSNIHost: (OFString*)SNIHost { /* TODO */ OF_UNRECOGNIZED_SELECTOR } -- (void)setCertificateVerificationEnabled: (bool)enabled -{ - _certificateVerificationEnabled = enabled; -} - -- (bool)isCertificateVerificationEnabled -{ - return _certificateVerificationEnabled; -} - -- (void)setRequestClientCertificatesEnabled: (bool)enabled -{ - _requestClientCertificatesEnabled = enabled; -} - -- (bool)isRequestClientCertificatesEnabled -{ - return _requestClientCertificatesEnabled; -} - - (OFDataArray*)channelBindingDataWithType: (OFString*)type { size_t length; char buffer[64]; OFDataArray *data;