Added "/otr fp" to show users fingerprint

This commit is contained in:
James Booth
2014-01-10 20:20:38 +00:00
parent 1b5254010e
commit e294a6db92
4 changed files with 27 additions and 11 deletions

View File

@@ -259,6 +259,16 @@ otr_account_load(ProfAccount *account)
return;
}
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)
{