Changeset 8f976e6
- Timestamp:
- 2012-10-30T23:41:43Z (12 years ago)
- Branches:
- master
- Children:
- 536dfa1
- Parents:
- addad71
- Files:
-
- 2 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 ) -
protocols/jabber/jabber.c
raddad71 r8f976e6 231 231 if( set_getbool( &acc->set, "ssl" ) ) 232 232 { 233 jd->ssl = ssl_connect( connect_to, set_getint( &acc->set, "port" ), FALSE, jabber_connected_ssl, ic );233 jd->ssl = ssl_connect( connect_to, set_getint( &acc->set, "port" ), set_getbool( &acc->set, "tls_verify" ), jabber_connected_ssl, ic ); 234 234 jd->fd = jd->ssl ? ssl_getfd( jd->ssl ) : -1; 235 235 }
Note: See TracChangeset
for help on using the changeset viewer.