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;