comparison svr-authpubkey.c @ 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 a7b66ea18632
children 1489449eceb1
comparison
equal deleted inserted replaced
1916:3f4cdf839a1a 1917:f8ed10efaaac
200 200
201 /* ... and finally verify the signature */ 201 /* ... and finally verify the signature */
202 fp = sign_key_fingerprint(keyblob, keybloblen); 202 fp = sign_key_fingerprint(keyblob, keybloblen);
203 if (buf_verify(ses.payload, key, sigtype, signbuf) == DROPBEAR_SUCCESS) { 203 if (buf_verify(ses.payload, key, sigtype, signbuf) == DROPBEAR_SUCCESS) {
204 dropbear_log(LOG_NOTICE, 204 dropbear_log(LOG_NOTICE,
205 "Pubkey auth succeeded for '%s' with key %s from %s", 205 "Pubkey auth succeeded for '%s' with %s key %s from %s",
206 ses.authstate.pw_name, fp, svr_ses.addrstring); 206 ses.authstate.pw_name,
207 signkey_name_from_type(keytype, NULL), fp,
208 svr_ses.addrstring);
207 send_msg_userauth_success(); 209 send_msg_userauth_success();
208 #if DROPBEAR_PLUGIN 210 #if DROPBEAR_PLUGIN
209 if ((ses.plugin_session != NULL) && (svr_ses.plugin_instance->auth_success != NULL)) { 211 if ((ses.plugin_session != NULL) && (svr_ses.plugin_instance->auth_success != NULL)) {
210 /* Was authenticated through the external plugin. tell plugin that signature verification was ok */ 212 /* Was authenticated through the external plugin. tell plugin that signature verification was ok */
211 svr_ses.plugin_instance->auth_success(ses.plugin_session); 213 svr_ses.plugin_instance->auth_success(ses.plugin_session);