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

Copy the elliptic&hyphen;curve or DH group name from a key 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;get&lowbar;group&lowbar;name(
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY] const* pkey,
    char* name,
    size&lowbar;t name&lowbar;sz,
    size&lowbar;t* gname&lowbar;len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pkey*
| Key whose group &sol; curve name is queried&period;
| *name*
| Optional destination buffer for the NUL&hyphen;terminated name, or NULL to query length only&period;
| *name&lowbar;sz*
| Size of `name` in bytes&period;
| *gname&lowbar;len*
| Optional destination for the name length excluding NUL, or NULL&period;
|===


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