# HG changeset patch # User Myhailo Danylenko # Date 1259445610 -7200 # Node ID 8effa82ae593996da4e6909cf8960325f6c13b3c # Parent 8036750d016989f604c962d4155675c2efca4e68 Do not print ssl error if user has not requested it diff -r 8036750d0169 -r 8effa82ae593 mcabber/src/xmpp.c --- a/mcabber/src/xmpp.c Sun Nov 22 23:38:31 2009 +0200 +++ b/mcabber/src/xmpp.c Sun Nov 29 00:00:10 2009 +0200 @@ -775,6 +775,13 @@ { scr_LogPrint(LPRINT_LOGNORM, "SSL status:%d", status); + // no need for message if user not requested ssl and + // set ignore_checks + if (settings_opt_get_int("ssl_ignore_checks") && + !((settings_opt_get("ssl") || settings_opt_get("tls")) && + (settings_opt_get_int("ssl") || settings_opt_get_int("tls")))) + return LM_SSL_RESPONSE_CONTINUE; + switch (status) { case LM_SSL_STATUS_NO_CERT_FOUND: scr_LogPrint(LPRINT_LOGNORM, "No certificate found!");