1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-09-07 02:46:38 +03:00

fix(pki): remove redundant key type_c assignment in pki_import_pubkey_buffer

We already assign the correct key type_c using ssh_key_type_to_char before this point.

Signed-off-by: Praneeth Sarode <praneethsarode@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Praneeth Sarode
2025-07-25 23:14:29 +05:30
committed by Jakub Jelen
parent ccbec9c275
commit 3423399f98

View File

@@ -1497,11 +1497,6 @@ static int pki_import_pubkey_buffer(ssh_buffer buffer,
goto fail;
}
/* Update key type */
if (type == SSH_KEYTYPE_ECDSA) {
key->type_c = ssh_pki_key_ecdsa_name(key);
}
/* Unpack SK specific parameters */
if (type == SSH_KEYTYPE_SK_ECDSA) {
ssh_string application = ssh_buffer_get_ssh_string(buffer);