comparison mcabber/libjabber/jconn.c @ 938:40175f3dcef7

SSL server certificate verification This patch enables SSL server certificate verification.
author Jefferson Ogata <ogata@antibozo.net>
date Sat, 08 Jul 2006 23:32:49 +0200
parents 98de2d166a11
children b33ca4e1c37d
comparison
equal deleted inserted replaced
937:548def60b810 938:40175f3dcef7
149 return; 149 return;
150 } 150 }
151 } 151 }
152 else { /* subsequent calls to cw_nb_connect until it finishes negociation */ 152 else { /* subsequent calls to cw_nb_connect until it finishes negociation */
153 if (cw_nb_connect(j->fd, 0, 0, j->ssl, &j->cw_state)) { 153 if (cw_nb_connect(j->fd, 0, 0, j->ssl, &j->cw_state)) {
154 if (cw_get_ssl_error())
155 scr_LogPrint(LPRINT_LOGNORM, "jab_start: SSL negotiation failed: %s", cw_get_ssl_error());
154 STATE_EVT(JCONN_STATE_OFF); 156 STATE_EVT(JCONN_STATE_OFF);
155 return; 157 return;
156 } 158 }
157 } 159 }
158 if (j->cw_state & CW_CONNECT_WANT_SOMETHING){ /* check if it finished negociation */ 160 if (j->cw_state & CW_CONNECT_WANT_SOMETHING){ /* check if it finished negociation */