From 1ea34b3821a3590c5402a55b4e4e69924db734e7 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sat, 10 May 2014 14:54:19 +0300 Subject: [PATCH] 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. --- apps/irssi/src/silc/core/client_ops.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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); -- 2.24.0