- Timestamp:
- 2012-11-17T23:51:21Z (12 years ago)
- Branches:
- master
- Children:
- 5aa96fc8
- Parents:
- d1356cb (diff), e1d3f98 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- lib
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/ssl_gnutls.c
rd1356cb rb006464 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.