Changeset 59c03bd for lib/ssl_gnutls.c
- Timestamp:
- 2012-01-03T23:53:28Z (12 years ago)
- Branches:
- master
- Children:
- 7615726
- Parents:
- 6451d27
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.