OSSL_PARAM_dup

Deep-copy an OSSL_PARAM array, including owned string/octet buffers.

Synopsis

Declared in <openssl/params.h>

OSSL_PARAM*
OSSL_PARAM_dup(OSSL_PARAM const* p);

Return Value

Newly allocated copy freed with OSSL_PARAM_free(), or NULL on failure.

Parameters

NameDescription
pSource array terminated by OSSL_PARAM_construct_end(), or NULL.