OSSL_PARAM_merge

Merge two OSSL_PARAM arrays, with p2 overriding duplicate keys from p1.

Synopsis

Declared in <openssl/params.h>

OSSL_PARAM*
OSSL_PARAM_merge(
    OSSL_PARAM const* p1,
    OSSL_PARAM const* p2);

Return Value

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

Parameters

NameDescription
p1First array terminated by OSSL_PARAM_construct_end(), or NULL.
p2Second array terminated by OSSL_PARAM_construct_end(), or NULL.