[#EVP_CIPHER_CTX_ctrl]
= EVP&lowbar;CIPHER&lowbar;CTX&lowbar;ctrl
:mrdocs:

Send a cipher&hyphen;specific control request to an EVP&lowbar;CIPHER&lowbar;CTX&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;CIPHER&lowbar;CTX&lowbar;ctrl(
    xref:EVP_CIPHER_CTX.adoc[EVP&lowbar;CIPHER&lowbar;CTX]* ctx,
    int type,
    int arg,
    void* ptr);
----

== Return Value

1 on success, &lt;&equals;0 on failure (command&hyphen;specific)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Cipher context to control&period;
| *type*
| EVP&lowbar;CTRL&lowbar;&ast; command code&period;
| *arg*
| Integer argument for `type&period;`
| *ptr*
| Pointer argument for `type,` or NULL&period;
|===


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