pki: Avoid needless cast to void

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
Jakub Jelen
2023-09-22 22:58:00 +02:00
committed by Sahana Prasad
parent dd11d469dc
commit 16ebd4597e
2 changed files with 2 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ struct ssh_key_struct {
ed25519_privkey *ed25519_privkey;
#endif /* HAVE_LIBCRYPTO */
ssh_string sk_application;
void *cert;
ssh_buffer cert;
enum ssh_keytypes_e cert_type;
};

View File

@@ -1476,7 +1476,7 @@ static int pki_import_cert_buffer(ssh_buffer buffer,
key->type = type;
key->type_c = type_c;
key->cert = (void*) cert;
key->cert = cert;
*pkey = key;
return SSH_OK;