Changeset 200e151
- Timestamp:
- 2011-12-23T22:40:17Z (13 years ago)
- Branches:
- master
- Children:
- 5513f3e
- Parents:
- 792a93b
- Location:
- lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/ssl_client.h
r792a93b r200e151 37 37 /* Some generic error codes. Especially SSL_AGAIN is important if you 38 38 want to do asynchronous I/O. */ 39 #define NSS_VERIFY_ERROR -240 #define OPENSSL_VERIFY_ERROR -141 39 #define SSL_OK 0 42 40 #define SSL_NOHANDSHAKE 1 -
lib/ssl_nss.c
r792a93b r200e151 140 140 conn->func = func; 141 141 conn->data = data; 142 conn->verify = verify ;142 conn->verify = verify && global.conf->cafile; 143 143 144 144 /* This function should be called via a (short) timeout instead of … … 160 160 struct scd *conn = data; 161 161 162 /* Right now we don't have any verification functionality for nss so we 163 fail in case verification has been requested by the user. */ 162 /* Right now we don't have any verification functionality for NSS. */ 164 163 165 164 if( conn->verify ) 166 165 { 167 conn->func( conn->data, NSS_VERIFY_ERROR, NULL, cond );166 conn->func( conn->data, 1, NULL, cond ); 168 167 if( source >= 0 ) closesocket( source ); 169 168 g_free( conn ); -
lib/ssl_openssl.c
r792a93b r200e151 91 91 conn->data = data; 92 92 conn->inpa = -1; 93 conn->verify = verify ;93 conn->verify = verify && global.conf->cafile; 94 94 95 95 /* This function should be called via a (short) timeout instead of … … 119 119 SSL_METHOD *meth; 120 120 121 /* Right now we don't have any verification functionality for openssl so we 122 fail in case verification has been requested by the user. */ 121 /* Right now we don't have any verification functionality for OpenSSL. */ 123 122 124 123 if( conn->verify ) 125 124 { 126 conn->func( conn->data, OPENSSL_VERIFY_ERROR, NULL, cond );125 conn->func( conn->data, 1, NULL, cond ); 127 126 if( source >= 0 ) closesocket( source ); 128 127 g_free( conn );
Note: See TracChangeset
for help on using the changeset viewer.