Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp.c @ 2199:527ba1c1873e
Display the server SSL fingerprint when we connect
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 11 Oct 2015 17:20:29 +0200 |
parents | 1591518a33b9 |
children | 170597f5365b |
comparison
equal
deleted
inserted
replaced
2198:1591518a33b9 | 2199:527ba1c1873e |
---|---|
739 } | 739 } |
740 | 740 |
741 static void connection_auth_cb(LmConnection *connection, gboolean success, | 741 static void connection_auth_cb(LmConnection *connection, gboolean success, |
742 gpointer user_data) | 742 gpointer user_data) |
743 { | 743 { |
744 LmSSL *lssl; | |
745 if ((lssl = lm_connection_get_ssl(connection)) != NULL) { | |
746 char fpr[49] = {0}; | |
747 fingerprint_to_hex(lm_ssl_get_fingerprint(lssl), fpr); | |
748 scr_LogPrint(LPRINT_LOGNORM, "Connection established.\n" | |
749 "Remote fingerprint: %s", fpr); | |
750 } | |
751 | |
744 if (success) { | 752 if (success) { |
745 | |
746 xmpp_iq_request(NULL, NS_ROSTER); | 753 xmpp_iq_request(NULL, NS_ROSTER); |
747 xmpp_iq_request(NULL, NS_DISCO_INFO); | 754 xmpp_iq_request(NULL, NS_DISCO_INFO); |
748 xmpp_request_storage("storage:bookmarks"); | 755 xmpp_request_storage("storage:bookmarks"); |
749 xmpp_request_storage("storage:rosternotes"); | 756 xmpp_request_storage("storage:rosternotes"); |
750 | 757 |