Mercurial > hg
changeset 2250:df5837a72b35
Ignore the untrusted certificate warning when user sets a fingerprint
If a user sets the fingerprint, he shouldn't need to set ssl_ignore_checks.
author | franky |
---|---|
date | Sat, 13 Feb 2016 13:48:43 +0100 |
parents | bbed6973987a |
children | f3bd1564fa70 |
files | mcabber/mcabber/xmpp.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c Sat Feb 13 13:34:32 2016 +0100 +++ b/mcabber/mcabber/xmpp.c Sat Feb 13 13:48:43 2016 +0100 @@ -713,6 +713,9 @@ break; case LM_SSL_STATUS_UNTRUSTED_CERT: scr_LogPrint(LPRINT_LOGNORM, "Certificate is not trusted!"); + // The user specified a fingerprint, let's wait for lm to check that + if (settings_opt_get("ssl_fingerprint")) + return LM_SSL_RESPONSE_CONTINUE; break; case LM_SSL_STATUS_CERT_EXPIRED: scr_LogPrint(LPRINT_LOGNORM, "Certificate has expired!");