[#EVP_PKEY_CTX_get_group_name]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;get&lowbar;group&lowbar;name
:mrdocs:

Copy the elliptic&hyphen;curve or DH group name from a key context into a caller buffer&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;get&lowbar;group&lowbar;name(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    char* name,
    size&lowbar;t namelen);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context whose group &sol; curve name is queried&period;
| *name*
| Destination buffer for the NUL&hyphen;terminated name&period;
| *namelen*
| Capacity of `name` in bytes&period;
|===


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