Added /otr theirfp with hardcoded fingerprint

This commit is contained in:
James Booth
2014-01-11 19:10:00 +00:00
parent bc8532b79c
commit 03086c0384
7 changed files with 47 additions and 9 deletions

View File

@@ -333,7 +333,7 @@ otr_key_loaded(void)
}
char *
otr_get_fingerprint(void)
otr_get_my_fingerprint(void)
{
char fingerprint[45];
otrl_privkey_fingerprint(user_state, fingerprint, jid, "xmpp");
@@ -342,6 +342,13 @@ otr_get_fingerprint(void)
return result;
}
char *
otr_get_their_fingerprint(char *recipient)
{
char *fingerprint = "1234 5678";
return strdup(fingerprint);
}
char *
otr_encrypt_message(const char * const to, const char * const message)
{