From 6ad6210901ddc8886270b7668ed92734d45e183c Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 30 Mar 2022 11:51:56 +0800 Subject: [PATCH] Print the key type in "Pubkey auth succeeded" --- svr-authpubkey.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/svr-authpubkey.c b/svr-authpubkey.c index e58751b..7886ea6 100644 --- a/svr-authpubkey.c +++ b/svr-authpubkey.c @@ -202,8 +202,10 @@ void svr_auth_pubkey(int valid_user) { fp = sign_key_fingerprint(keyblob, keybloblen); if (buf_verify(ses.payload, key, sigtype, signbuf) == DROPBEAR_SUCCESS) { dropbear_log(LOG_NOTICE, - "Pubkey auth succeeded for '%s' with key %s from %s", - ses.authstate.pw_name, fp, svr_ses.addrstring); + "Pubkey auth succeeded for '%s' with %s key %s from %s", + ses.authstate.pw_name, + signkey_name_from_type(keytype, NULL), fp, + svr_ses.addrstring); send_msg_userauth_success(); #if DROPBEAR_PLUGIN if ((ses.plugin_session != NULL) && (svr_ses.plugin_instance->auth_success != NULL)) {