[#EVP_CIPHER_CTX_get0_cipher]
= EVP&lowbar;CIPHER&lowbar;CTX&lowbar;get0&lowbar;cipher
:mrdocs:

Return the cipher method currently associated with a cipher context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:EVP_CIPHER-07.adoc[EVP&lowbar;CIPHER] const*
EVP&lowbar;CIPHER&lowbar;CTX&lowbar;get0&lowbar;cipher(xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX] const* ctx);
----

== Return Value

Internal EVP&lowbar;CIPHER pointer (do not free), or NULL if unset&period;

== Parameters

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


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