Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/mcabber/libjabber/jconn.c Sat Jul 08 22:07:30 2006 +0200 +++ b/mcabber/libjabber/jconn.c Sat Jul 08 23:32:49 2006 +0200 @@ -151,6 +151,8 @@ } else { /* subsequent calls to cw_nb_connect until it finishes negociation */ if (cw_nb_connect(j->fd, 0, 0, j->ssl, &j->cw_state)) { + if (cw_get_ssl_error()) + scr_LogPrint(LPRINT_LOGNORM, "jab_start: SSL negotiation failed: %s", cw_get_ssl_error()); STATE_EVT(JCONN_STATE_OFF); return; }