From 16ebd4597ecfd3cd472636f3e83a4e6b82273480 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 22 Sep 2023 22:58:00 +0200 Subject: [PATCH] pki: Avoid needless cast to void Signed-off-by: Jakub Jelen Reviewed-by: Sahana Prasad --- include/libssh/pki.h | 2 +- src/pki.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libssh/pki.h b/include/libssh/pki.h index 096a645f..575d442d 100644 --- a/include/libssh/pki.h +++ b/include/libssh/pki.h @@ -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; }; diff --git a/src/pki.c b/src/pki.c index 6b0ef76e..259a8a2f 100644 --- a/src/pki.c +++ b/src/pki.c @@ -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;