[#EVP_CIPHER_meth_set_cleanup] = EVP_CIPHER_meth_set_cleanup :mrdocs: Set the context‐cleanup callback on a custom EVP_CIPHER (deprecated). == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int EVP_CIPHER_meth_set_cleanup( xref:EVP_CIPHER-07.adoc[EVP_CIPHER]* cipher, int(* cleanup)(xref:EVP_CIPHER_CTX.adoc[EVP_CIPHER_CTX]*)); ---- [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. == Parameters [cols="1,4"] |=== | Name| Description | *cipher* | Custom cipher method to update. | *cleanup* | Callback invoked when an EVP_CIPHER_CTX using this method is reset or freed. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#