From: Pekka Riikonen Date: Sat, 10 May 2014 11:54:19 +0000 (+0300) Subject: silc-client: show successful client public key verification X-Git-Tag: silc.client.1.1.11~6 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=1ea34b3821a3590c5402a55b4e4e69924db734e7 silc-client: show successful client public key verification When successfully verified client's public key, which now most of the time happens when sending private message for the first time, show it on the screen so user can be sure of it. --- diff --git a/apps/irssi/src/silc/core/client_ops.c b/apps/irssi/src/silc/core/client_ops.c index 99db2f5b..af27ee56 100644 --- a/apps/irssi/src/silc/core/client_ops.c +++ b/apps/irssi/src/silc/core/client_ops.c @@ -2757,6 +2757,21 @@ silc_verify_public_key_internal(SilcClient client, SilcClientConnection conn, return; } + if (conn_type == SILC_CONN_CLIENT) + printformat_module("fe-common/silc", NULL, NULL, + MSGLEVEL_CRAP, SILCTXT_PUBKEY_VERIFIED_CLIENT, + (name + ? name + : (silc_pubkey->identifier.realname + ? silc_pubkey->identifier.realname + : (silc_pubkey->identifier.email + ? silc_pubkey->identifier.email + : ""))), + silc_pubkey->identifier.realname ? + silc_pubkey->identifier.realname : "", + silc_pubkey->identifier.email ? + silc_pubkey->identifier.email : ""); + /* Local copy matched */ if (completion) completion(TRUE, context);