EVP_PKEY_CTX_get0_pkey

Return the primary EVP_PKEY associated with a key context.

Synopsis

Declared in <openssl/evp.h>

EVP_PKEY*
EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX* ctx);

Return Value

Key pointer owned by ctx (do not free), or NULL if unset.

Parameters

NameDescription
ctxKey context to query.