[#EVP_MD_CTX_get1_md]
= EVP&lowbar;MD&lowbar;CTX&lowbar;get1&lowbar;md
:mrdocs:

Return the digest method associated with `ctx,` transferring a reference to the caller&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_MD.adoc[EVP&lowbar;MD]*
EVP&lowbar;MD&lowbar;CTX&lowbar;get1&lowbar;md(xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* ctx);
----

== Return Value

EVP&lowbar;MD with an incremented reference count (free with EVP&lowbar;MD&lowbar;free), or NULL if unset&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Digest context to query&period;
|===


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