[#EVP_PKEY_CTX_set_tls1_prf_md]
= EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;tls1&lowbar;prf&lowbar;md
:mrdocs:

Select the digest used by a TLS1&hyphen;PRF EVP&lowbar;PKEY&lowbar;CTX&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;PKEY&lowbar;CTX&lowbar;set&lowbar;tls1&lowbar;prf&lowbar;md(
    xref:EVP_PKEY_CTX.adoc[EVP&lowbar;PKEY&lowbar;CTX]* ctx,
    xref:EVP_MD.adoc[EVP&lowbar;MD] const* md);
----

== Return Value

1 on success, or a negative value &sol; 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context for EVP&lowbar;PKEY&lowbar;TLS1&lowbar;PRF key derivation&period;
| *md*
| Message digest (for example EVP&lowbar;sha256()) used by the PRF&period;
|===


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