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

Return the length of an algorithm&hyphen;specific ID associated with a key context&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&lowbar;len(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    size&lowbar;t* id&lowbar;len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context that holds an ID (for example SM2 user id)&period;
| *id&lowbar;len*
| Receives the ID length in bytes&period;
|===


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