[#EVP_MD_meth_set_copy]
= EVP&lowbar;MD&lowbar;meth&lowbar;set&lowbar;copy
:mrdocs:

Set the context&hyphen;copy callback on a custom EVP&lowbar;MD method (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
EVP&lowbar;MD&lowbar;meth&lowbar;set&lowbar;copy(
    xref:EVP_MD.adoc[EVP&lowbar;MD]* md,
    int(* copy)(xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]*, xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX] const*));
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *md*
| Digest method being constructed with EVP&lowbar;MD&lowbar;meth&lowbar;new()&period;
| *copy*
| Callback that duplicates digest state from `from` into `to&period;`
|===


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