OSSL_SELF_TEST_set_callback.3ossl - Man Page

specify a callback for processing self tests

Synopsis

 #include <openssl/self_test.h>

 void OSSL_SELF_TEST_set_callback(OSSL_LIB_CTX *ctx, OSSL_CALLBACK *cb, void *cbarg);
 void OSSL_SELF_TEST_get_callback(OSSL_LIB_CTX *ctx, OSSL_CALLBACK **cb, void **cbarg);

Description

Set or gets the optional application callback (and the callback argument) that is called during self testing. The application callback OSSL_CALLBACK(3) is associated with a OSSL_LIB_CTX. The application callback function receives information about a running self test, and may return a result to the calling self test. See openssl-core.h(7) for further information on the callback.

Return Values

OSSL_SELF_TEST_get_callback() returns the callback and callback argument that has been set via OSSL_SELF_TEST_set_callback() for the given library context ctx. These returned parameters will be NULL if OSSL_SELF_TEST_set_callback() has not been called.

See Also

openssl-core.h(7), OSSL_PROVIDER-FIPS(7) OSSL_SELF_TEST_new(3) OSSL_LIB_CTX(3)

History

The functions described here were added in OpenSSL 3.0.

Referenced By

ossl-guide-migration.7ossl(7), OSSL_PROVIDER.3ossl(3), OSSL_PROVIDER-FIPS.7ossl(7), OSSL_SELF_TEST_new.3ossl(3).

The man page OSSL_SELF_TEST_get_callback.3ossl(3) is an alias of OSSL_SELF_TEST_set_callback.3ossl(3).

2024-03-07 3.2.1 OpenSSL