[#EVP_PKEY_set_ex_data]
= EVP&lowbar;PKEY&lowbar;set&lowbar;ex&lowbar;data
:mrdocs:

Store application&hyphen;specific data on an EVP&lowbar;PKEY at a CRYPTO ex&lowbar;data index&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;set&lowbar;ex&lowbar;data(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* key,
    int idx,
    void* arg);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| Key that owns the ex&lowbar;data table&period;
| *idx*
| Index obtained from EVP&lowbar;PKEY&lowbar;get&lowbar;ex&lowbar;new&lowbar;index() (or a reserved index)&period;
| *arg*
| Pointer to store&semi; ownership remains with the caller unless free callbacks manage it&period;
|===


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