[#EVP_PKEY_CTX_get1_id]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;get1&lowbar;id
:mrdocs:

Copy the algorithm&hyphen;specific ID bytes from `ctx` into `id&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;CTX&lowbar;get1&lowbar;id(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    void* id);
----

== Return Value

1 on success, or a non&hyphen;positive value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context that previously received an ID via EVP&lowbar;PKEY&lowbar;CTX&lowbar;set1&lowbar;id()&period;
| *id*
| Caller&hyphen;allocated buffer of size reported by EVP&lowbar;PKEY&lowbar;CTX&lowbar;get1&lowbar;id&lowbar;len()&period;
|===


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