[#ERR_set_error_data]
= ERR&lowbar;set&lowbar;error&lowbar;data
:mrdocs:

Replace auxiliary data on the most recent error, taking ownership when flagged&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
ERR&lowbar;set&lowbar;error&lowbar;data(
    char* data,
    int flags);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| Auxiliary string or buffer&semi; ownership transfers if `flags` includes ERR&lowbar;TXT&lowbar;MALLOCED&period;
| *flags*
| ERR&lowbar;TXT&lowbar;MALLOCED and&sol;or ERR&lowbar;TXT&lowbar;STRING describing `data&period;`
|===


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