about summary refs log tree commit diff stats
path: root/src/otr/otrlibv3.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-04-27 01:17:38 +0100
committerJames Booth <boothj5@gmail.com>2014-04-27 01:17:38 +0100
commit2bc19f4669f820ff952a9d1b02055e93891d99b4 (patch)
tree649ef4dfc572ee81fd13f98a98a92de0e369e2aa /src/otr/otrlibv3.c
parentc39c093fa5bb7907143c6f06ee06a1a88ea788f1 (diff)
downloadprofani-tty-2bc19f4669f820ff952a9d1b02055e93891d99b4.tar.gz
Added SMP secret authentication success message
Diffstat (limited to 'src/otr/otrlibv3.c')
-rw-r--r--src/otr/otrlibv3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/otr/otrlibv3.c b/src/otr/otrlibv3.c
index ce5a2f95..bfd25a5f 100644
--- a/src/otr/otrlibv3.c
+++ b/src/otr/otrlibv3.c
@@ -137,6 +137,7 @@ otrlib_handle_tlvs(OtrlUserState user_state, OtrlMessageAppOps *ops, ConnContext
         } else {
             context->smstate->nextExpected = OTRL_SMP_EXPECT1;
             if ((context->active_fingerprint->trust != NULL) && (context->active_fingerprint->trust[0] != '\0')) {
+                ui_smp_successful(context->username);
                 ui_trust(context->username);
                 otr_trust(context->username);
             } else {
@@ -153,6 +154,7 @@ otrlib_handle_tlvs(OtrlUserState user_state, OtrlMessageAppOps *ops, ConnContext
         } else {
             context->smstate->nextExpected = OTRL_SMP_EXPECT1;
             if ((context->active_fingerprint->trust != NULL) && (context->active_fingerprint->trust[0] != '\0')) {
+                ui_smp_successful(context->username);
                 ui_trust(context->username);
                 otr_trust(context->username);
             } else {