[#HMAC_CTX_copy]
= HMAC&lowbar;CTX&lowbar;copy
:mrdocs:

Copy the HMAC state from `sctx` into `dctx` (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
HMAC&lowbar;CTX&lowbar;copy(
    xref:HMAC_CTX.adoc[HMAC&lowbar;CTX]* dctx,
    xref:HMAC_CTX.adoc[HMAC&lowbar;CTX]* sctx);
----

[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 failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dctx*
| Destination context&semi; must already be allocated with HMAC&lowbar;CTX&lowbar;new()&period;
| *sctx*
| Source context whose digest, key, and intermediate state are copied&period;
|===


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