changeset 1917:f8ed10efaaac

Print the key type in "Pubkey auth succeeded"
author Matt Johnston <matt@ucc.asn.au>
date Wed, 30 Mar 2022 11:51:56 +0800
parents 3f4cdf839a1a
children 863f31b4cf3c
files svr-authpubkey.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/svr-authpubkey.c	Wed Mar 30 11:44:04 2022 +0800
+++ b/svr-authpubkey.c	Wed Mar 30 11:51:56 2022 +0800
@@ -202,8 +202,10 @@
 	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)) {