[#OSSL_PARAM_merge]
= OSSL&lowbar;PARAM&lowbar;merge
:mrdocs:

Merge two OSSL&lowbar;PARAM arrays, with `p2` overriding duplicate keys from `p1&period;`

== Synopsis

Declared in `&lt;openssl&sol;params&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM]*
OSSL&lowbar;PARAM&lowbar;merge(
    xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM] const* p1,
    xref:OSSL_PARAM.adoc[OSSL&lowbar;PARAM] const* p2);
----

== Return Value

Newly allocated merged array freed with OSSL&lowbar;PARAM&lowbar;free(), or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *p1*
| First array terminated by OSSL&lowbar;PARAM&lowbar;construct&lowbar;end(), or NULL&period;
| *p2*
| Second array terminated by OSSL&lowbar;PARAM&lowbar;construct&lowbar;end(), or NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
