OSSL_DECODER_CTX_set_cleanup

Register a cleanup callback invoked from OSSL_DECODER_CTX_free().

Synopsis

Declared in <openssl/decoder.h>

int
OSSL_DECODER_CTX_set_cleanup(
    OSSL_DECODER_CTX* ctx,
    OSSL_DECODER_CLEANUP* cleanup);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
ctxDecoder context to configure.
cleanupCallback that frees construct data, or NULL to clear.