# HG changeset patch # User Matt Johnston # Date 1648612316 -28800 # Node ID f8ed10efaaac554dd93c09535956a4c5fa6170a3 # Parent 3f4cdf839a1a4ff7a0fa65c1ae52ec89df4eadf1 Print the key type in "Pubkey auth succeeded" diff -r 3f4cdf839a1a -r f8ed10efaaac svr-authpubkey.c --- 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)) {