[#EVP_PKEY_CTX_set_group_name]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;group&lowbar;name
:mrdocs:

Set the elliptic&hyphen;curve &sol; DH group name on a key or parameter 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;set&lowbar;group&lowbar;name(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    char const* name);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key context used for keygen&sol;paramgen&sol;derive&period;
| *name*
| Group name (for example &quot;P&hyphen;256&quot; or &quot;ffdhe2048&quot;)&period;
|===


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