[#EVP_PKEY_CTX_set_dhx_rfc5114]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;dhx&lowbar;rfc5114
:mrdocs:

Select an RFC 5114 DHX (X9&period;42 DH) named parameter set on a keygen&sol;paramgen context&period;

== Synopsis

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

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

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| EVP&lowbar;PKEY&lowbar;CTX for a DHX operation&period;
| *gen*
| RFC 5114 parameter&hyphen;set index (1, 2, or 3)&period;
|===


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