[#EC_KEY_new_ex]
= EC&lowbar;KEY&lowbar;new&lowbar;ex
:mrdocs:

Create a new empty EC&lowbar;KEY using a library context (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:EC_KEY.adoc[EC&lowbar;KEY]*
EC&lowbar;KEY&lowbar;new&lowbar;ex(
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* ctx,
    char const* propq);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

New EC&lowbar;KEY, or NULL if an error occurred&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Library context for algorithm fetches, or NULL for the default&period;
| *propq*
| Optional property query string for provider selection, or NULL&period;
|===


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