[#EVP_MD_CTX_ctrl]
= EVP&lowbar;MD&lowbar;CTX&lowbar;ctrl
:mrdocs:

Send a legacy control request to a digest context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;MD&lowbar;CTX&lowbar;ctrl(
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* ctx,
    int cmd,
    int p1,
    void* p2);
----

== Return Value

1 on success, or a command&hyphen;specific status &sol; 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Digest context to control&period;
| *cmd*
| Control command (algorithm&hyphen;specific)&period;
| *p1*
| Integer control argument&period;
| *p2*
| Pointer control argument, or NULL&period;
|===


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