summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2022-03-30 11:51:56 +0800
committerMatt Johnston <matt@ucc.asn.au>2022-03-30 11:51:56 +0800
commitca6d6d55d62683e743c0bb838a57c9eb8e27581f (patch)
tree17afa18ea81433b846ce10eaa1e269ce9e2b863f
parentda8ad3ebc94c72f07cf54db540a762095f3deef2 (diff)
downloaddropbear-ca6d6d55d62683e743c0bb838a57c9eb8e27581f.tar.gz
Print the key type in "Pubkey auth succeeded"
-rw-r--r--svr-authpubkey.c6
1 files 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)) {