Changeset 1353
- Timestamp:
- 05/28/04 11:51:30 (5 years ago)
- Files:
-
- WiredClient/trunk/WCSecureSocket.m (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCSecureSocket.m
r1337 r1353 1 /* $Id: WCSecureSocket.m,v 1.1 0 2004/05/24 14:11:17morris Exp $ */1 /* $Id: WCSecureSocket.m,v 1.11 2004/05/28 09:51:30 morris Exp $ */ 2 2 3 3 /* … … 105 105 106 106 if(!_ssl) { 107 [[_connection error] setError:WCConnectionErrorSSL Failed];107 [[_connection error] setError:WCConnectionErrorSSLConnectFailed]; 108 108 109 109 return -1; … … 111 111 112 112 if(SSL_set_fd(_ssl, _sd) != 1) { 113 [[_connection error] setError:WCConnectionErrorSSL Failed];113 [[_connection error] setError:WCConnectionErrorSSLConnectFailed]; 114 114 115 115 return -1; … … 117 117 118 118 if(SSL_connect(_ssl) != 1) { 119 [[_connection error] setError:WCConnectionErrorSSL Failed];119 [[_connection error] setError:WCConnectionErrorSSLConnectFailed]; 120 120 121 121 return -1; … … 157 157 158 158 if(state < 0) { 159 NSLog(@"select: %s", strerror(errno)); 159 160 [[_connection error] setError:WCConnectionErrorReadFailed]; 160 161 … … 170 171 } 171 172 else if(bytes < 0) { 173 NSLog(@"SSL_read: %s, %s", ERR_reason_error_string(ERR_get_error()), strerror(errno)); 172 174 [[_connection error] setError:WCConnectionErrorSSLFailed]; 173 175 … … 228 230 else if(bytes == -1) { 229 231 // --- error 232 NSLog(@"SSL_read: %s, %s", ERR_reason_error_string(ERR_get_error()), strerror(errno)); 230 233 [[_connection error] setError:WCConnectionErrorSSLFailed]; 231 234 … … 249 252 250 253 if(bytes < 0) { 254 NSLog(@"SSL_read: %s, %s", ERR_reason_error_string(ERR_get_error()), strerror(errno)); 251 255 [[_connection error] setError:WCConnectionErrorSSLFailed]; 252 256
