[#EC_KEY_set_ex_data]
= EC&lowbar;KEY&lowbar;set&lowbar;ex&lowbar;data
:mrdocs:

Store application data on an EC&lowbar;KEY at CRYPTO&lowbar;EX index `idx` (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
EC&lowbar;KEY&lowbar;set&lowbar;ex&lowbar;data(
    xref:EC_KEY.adoc[EC&lowbar;KEY]* key,
    int idx,
    void* arg);
----

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

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| Key receiving the data&period;
| *idx*
| Index from CRYPTO&lowbar;get&lowbar;ex&lowbar;new&lowbar;index() for EC&lowbar;KEY&period;
| *arg*
| Pointer to store&semi; ownership rules follow CRYPTO&lowbar;EX&lowbar;DATA&period;
|===


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