about summary refs log tree commit diff stats
path: root/src/otr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/otr.c')
-rw-r--r--src/otr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/otr.c b/src/otr.c
index bb48d1f0..b6b19252 100644
--- a/src/otr.c
+++ b/src/otr.c
@@ -260,6 +260,16 @@ otr_account_load(ProfAccount *account)
 }
 
 char *
+otr_get_fingerprint(void)
+{
+    char fingerprint[45];
+    otrl_privkey_fingerprint(user_state, fingerprint, jid, "xmpp");
+    char *result = strdup(fingerprint);
+
+    return result;
+}
+
+char *
 otr_encrypt_message(const char * const to, const char * const message)
 {
 //    cons_debug("otr_encrypt_message, account: %s, recipient: %s, message: %s", jid, to, message);