OSSL_ENCODER_CTX_set_cleanup

Register a cleanup callback invoked from OSSL_ENCODER_CTX_free().

Synopsis

Declared in <openssl/encoder.h>

int
OSSL_ENCODER_CTX_set_cleanup(
    OSSL_ENCODER_CTX* ctx,
    OSSL_ENCODER_CLEANUP* cleanup);

Return Value

1 on success, or 0 on failure.

Parameters

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