# HG changeset patch # User Mikael Berthe # Date 1444576829 -7200 # Node ID 527ba1c1873ed3c15d1f71f96182bfeaeb4efc8a # Parent 1591518a33b9ecf0b18324c10a9e7b99ecbbef55 Display the server SSL fingerprint when we connect diff -r 1591518a33b9 -r 527ba1c1873e mcabber/mcabber/xmpp.c --- a/mcabber/mcabber/xmpp.c Sun Oct 11 17:19:15 2015 +0200 +++ b/mcabber/mcabber/xmpp.c Sun Oct 11 17:20:29 2015 +0200 @@ -741,8 +741,15 @@ static void connection_auth_cb(LmConnection *connection, gboolean success, gpointer user_data) { + LmSSL *lssl; + if ((lssl = lm_connection_get_ssl(connection)) != NULL) { + char fpr[49] = {0}; + fingerprint_to_hex(lm_ssl_get_fingerprint(lssl), fpr); + scr_LogPrint(LPRINT_LOGNORM, "Connection established.\n" + "Remote fingerprint: %s", fpr); + } + if (success) { - xmpp_iq_request(NULL, NS_ROSTER); xmpp_iq_request(NULL, NS_DISCO_INFO); xmpp_request_storage("storage:bookmarks");