[#EVP_PKEY_CTX_get0_ecdh_kdf_ukm]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;get0&lowbar;ecdh&lowbar;kdf&lowbar;ukm
:mrdocs:

Get a pointer to the ECDH KDF user keying material on a key context (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
EVP&lowbar;PKEY&lowbar;CTX&lowbar;get0&lowbar;ecdh&lowbar;kdf&lowbar;ukm(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    unsigned char** ukm);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

Length of the UKM in bytes, or a negative value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Key&hyphen;exchange context configured for ECDH with a KDF&period;
| *ukm*
| Receives a pointer to the internal UKM bytes (do not free)&period;
|===


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