Added "/otr fp" to show users fingerprint
This commit is contained in:
10
src/otr.c
10
src/otr.c
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user