about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-01-10 20:12:22 +0000
committerJames Booth <boothj5@gmail.com>2014-01-10 20:12:22 +0000
commit1b5254010ea1fd2b29d9802ed19de00d35e0cc8d (patch)
tree53b01c99343c879aca6b60cdfeda6d5e3bca3e3a
parent9fb828165652ad96f903cc09f649f8c5a5ffa918 (diff)
downloadprofani-tty-1b5254010ea1fd2b29d9802ed19de00d35e0cc8d.tar.gz
Show users fingerprint after generating key
-rw-r--r--src/otr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/otr.c b/src/otr.c
index c8096167..bb48d1f0 100644
--- a/src/otr.c
+++ b/src/otr.c
@@ -249,6 +249,10 @@ otr_account_load(ProfAccount *account)
     }
     cons_debug("Loaded fingerprints");
 
+    char fingerprint[45];
+    otrl_privkey_fingerprint(user_state, fingerprint, jid, "xmpp");
+    cons_debug("Your fingerprint: %s", fingerprint);
+
     g_string_free(basedir, TRUE);
     g_string_free(keysfilename, TRUE);
     g_string_free(fpsfilename, TRUE);