[#EVP_PKEY_CTX_set0_dh_kdf_ukm]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set0&lowbar;dh&lowbar;kdf&lowbar;ukm
:mrdocs:

Set the DH KDF User Keying Material, transferring ownership of `ukm&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;set0&lowbar;dh&lowbar;kdf&lowbar;ukm(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    unsigned char* ukm,
    int len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key&hyphen;exchange context configured for DH KDF&period;
| *ukm*
| UKM bytes that `ctx` will own and free&semi; may be NULL when `len` is 0&period;
| *len*
| Length of `ukm` in bytes&period;
|===


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