mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-09-08 15:12:05 +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:
committed by
Jakub Jelen
parent
ccbec9c275
commit
3423399f98
@@ -1497,11 +1497,6 @@ static int pki_import_pubkey_buffer(ssh_buffer buffer,
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update key type */
|
|
||||||
if (type == SSH_KEYTYPE_ECDSA) {
|
|
||||||
key->type_c = ssh_pki_key_ecdsa_name(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Unpack SK specific parameters */
|
/* Unpack SK specific parameters */
|
||||||
if (type == SSH_KEYTYPE_SK_ECDSA) {
|
if (type == SSH_KEYTYPE_SK_ECDSA) {
|
||||||
ssh_string application = ssh_buffer_get_ssh_string(buffer);
|
ssh_string application = ssh_buffer_get_ssh_string(buffer);
|
||||||
|
Reference in New Issue
Block a user