[#BN_CTX_secure_new_ex]
= BN&lowbar;CTX&lowbar;secure&lowbar;new&lowbar;ex
:mrdocs:

Allocate a BN&lowbar;CTX whose temporary BIGNUMs use secure heap storage&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BN_CTX.adoc[BN&lowbar;CTX]*
BN&lowbar;CTX&lowbar;secure&lowbar;new&lowbar;ex(xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* ctx);
----

== Return Value

New BN&lowbar;CTX with BN&lowbar;FLG&lowbar;SECURE set, or NULL on failure&semi; free with BN&lowbar;CTX&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Library context for allocation, or NULL for the default&period;
|===


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