[#OSSL_DECODER_CTX_set_cleanup]
= OSSL&lowbar;DECODER&lowbar;CTX&lowbar;set&lowbar;cleanup
:mrdocs:

Register a cleanup callback invoked from OSSL&lowbar;DECODER&lowbar;CTX&lowbar;free()&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;DECODER&lowbar;CTX&lowbar;set&lowbar;cleanup(
    xref:OSSL_DECODER_CTX.adoc[OSSL&lowbar;DECODER&lowbar;CTX]* ctx,
    xref:OSSL_DECODER_CLEANUP.adoc[OSSL&lowbar;DECODER&lowbar;CLEANUP]* cleanup);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Decoder context to configure&period;
| *cleanup*
| Callback that frees construct data, or NULL to clear&period;
|===


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