EVP_CIPHER_meth_set_cleanup

Set the context-cleanup callback on a custom EVP_CIPHER (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
int
EVP_CIPHER_meth_set_cleanup(
    EVP_CIPHER* cipher,
    int(* cleanup)(EVP_CIPHER_CTX*));

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cipherCustom cipher method to update.
cleanupCallback invoked when an EVP_CIPHER_CTX using this method is reset or freed.