comparison mcabber/src/main.c @ 1445:00503a68f431

Fix false error with GnuTLS ssl_verify doesn't have to be checked when ssl isn't set!
author Mikael Berthe <mikael@lilotux.net>
date Mon, 17 Mar 2008 10:51:23 +0100
parents 071c8170b7de
children 844410b9b4cc
comparison
equal deleted inserted replaced
1444:3bf11085c6a5 1445:00503a68f431
126 "ignoring ssl-related settings"); 126 "ignoring ssl-related settings");
127 ssl = sslverify = 0; 127 ssl = sslverify = 0;
128 cafile = capath = ciphers = NULL; 128 cafile = capath = ciphers = NULL;
129 } 129 }
130 #elif defined HAVE_GNUTLS 130 #elif defined HAVE_GNUTLS
131 if (sslverify != 0) { 131 if (ssl && sslverify != 0) {
132 scr_LogPrint(LPRINT_LOGNORM, "** Error: SSL certificate checking " 132 scr_LogPrint(LPRINT_LOGNORM, "** Error: SSL certificate checking "
133 "is not supported yet with GnuTLS."); 133 "is not supported yet with GnuTLS.");
134 scr_LogPrint(LPRINT_LOGNORM, 134 scr_LogPrint(LPRINT_LOGNORM,
135 " * Please set 'ssl_verify' to 0 explicitly!"); 135 " * Please set 'ssl_verify' to 0 explicitly!");
136 return; 136 return;