EVP_PKEY_dup

Duplicate an EVP_PKEY (not supported for ENGINE-based or raw keys).

Synopsis

Declared in <openssl/evp.h>

EVP_PKEY*
EVP_PKEY_dup(EVP_PKEY* pkey);

Return Value

Newly allocated copy, or NULL on failure.

Parameters

NameDescription
pkeyKey to copy.