- Timestamp:
- 2012-01-03T23:53:28Z (13 years ago)
- Branches:
- master
- Children:
- 7615726
- Parents:
- 6451d27
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/ssl_gnutls.c
r6451d27 r59c03bd 79 79 { 80 80 gnutls_certificate_set_x509_trust_file( xcred, global.conf->cafile, GNUTLS_X509_FMT_PEM ); 81 /* TODO: Do we want/need this? */ 81 82 /* Not needed in GnuTLS 2.11+ but we support older versions for now. */ 82 83 gnutls_certificate_set_verify_flags( xcred, GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT ); 83 84 } … … 191 192 #endif 192 193 193 /* The following check is already performed inside 194 * gnutls_certificate_verify_peers2, so we don't need it. 195 196 * if( gnutls_certificate_type_get( session ) != GNUTLS_CRT_X509 ) 197 * return GNUTLS_E_CERTIFICATE_ERROR; 198 */ 199 200 if( gnutls_x509_crt_init( &cert ) < 0 ) 194 if( gnutls_certificate_type_get( session ) != GNUTLS_CRT_X509 || gnutls_x509_crt_init( &cert ) < 0 ) 201 195 return VERIFY_CERT_ERROR; 202 196 -
lib/ssl_openssl.c
r6451d27 r59c03bd 31 31 #include <openssl/err.h> 32 32 33 #include "bitlbee.h" 33 34 #include "proxy.h" 34 35 #include "ssl_client.h" … … 117 118 { 118 119 struct scd *conn = data; 119 SSL_METHOD *meth;120 const SSL_METHOD *meth; 120 121 121 122 /* Right now we don't have any verification functionality for OpenSSL. */
Note: See TracChangeset
for help on using the changeset viewer.