- Timestamp:
- 2012-10-30T23:41:43Z (12 years ago)
- Branches:
- master
- Children:
- 536dfa1
- Parents:
- addad71
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/ssl_gnutls.c
raddad71 r8f976e6 85 85 gnutls_certificate_set_x509_trust_file( xcred, global.conf->cafile, GNUTLS_X509_FMT_PEM ); 86 86 87 /* Not needed in GnuTLS 2.11+ but we support older versions for now. */ 88 gnutls_certificate_set_verify_flags( xcred, GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT ); 87 /* Not needed in GnuTLS 2.11+ (enabled by default there) so 88 don't do it (resets possible other defaults). */ 89 if( !gnutls_check_version( "2.11" ) ) 90 gnutls_certificate_set_verify_flags( xcred, GNUTLS_VERIFY_ALLOW_X509_V1_CA_CRT ); 89 91 } 90 92 initialized = TRUE; … … 108 110 struct scd *conn = g_new0( struct scd, 1 ); 109 111 110 conn->fd = proxy_connect( host, port, ssl_connected, conn );111 112 conn->func = func; 112 113 conn->data = data; … … 114 115 conn->hostname = g_strdup( host ); 115 116 conn->verify = verify && global.conf->cafile; 117 conn->fd = proxy_connect( host, port, ssl_connected, conn ); 116 118 117 119 if( conn->fd < 0 )
Note: See TracChangeset
for help on using the changeset viewer.