diff options
Diffstat (limited to 'src/otr')
-rw-r--r-- | src/otr/otr.c | 4 | ||||
-rw-r--r-- | src/otr/otrlibv3.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c index e246748b..fe87eed8 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -407,9 +407,13 @@ _otr_smp_secret(const char * const recipient, const char *secret) // if recipient initiated SMP, send response, else initialise if (g_hash_table_contains(smp_initiators, recipient)) { otrl_message_respond_smp(user_state, &ops, NULL, context, (const unsigned char*)secret, strlen(secret)); + ui_current_print_formatted_line('!', 0, "Authenticating %s...", recipient); + ui_current_page_off(); g_hash_table_remove(smp_initiators, context->username); } else { otrl_message_initiate_smp(user_state, &ops, NULL, context, (const unsigned char*)secret, strlen(secret)); + ui_current_print_formatted_line('!', 0, "Awaiting authentication from %s...", recipient); + ui_current_page_off(); } } 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 { |