1OSSL_SELF_TEST_SET_CALLBACK(3ossl) OpenSSL OSSL_SELF_TEST_SET_CALLBACK(3ossl)
2
3
4
6 OSSL_SELF_TEST_set_callback, OSSL_SELF_TEST_get_callback - specify a
7 callback for processing self tests
8
10 #include <openssl/self_test.h>
11
12 void OSSL_SELF_TEST_set_callback(OSSL_LIB_CTX *ctx, OSSL_CALLBACK *cb, void *cbarg);
13 void OSSL_SELF_TEST_get_callback(OSSL_LIB_CTX *ctx, OSSL_CALLBACK **cb, void **cbarg);
14
16 Set or gets the optional application callback (and the callback
17 argument) that is called during self testing. The application callback
18 OSSL_CALLBACK(3) is associated with a OSSL_LIB_CTX. The application
19 callback function receives information about a running self test, and
20 may return a result to the calling self test. See openssl-core.h(7)
21 for further information on the callback.
22
24 OSSL_SELF_TEST_get_callback() returns the callback and callback
25 argument that has been set via OSSL_SELF_TEST_set_callback() for the
26 given library context ctx. These returned parameters will be NULL if
27 OSSL_SELF_TEST_set_callback() has not been called.
28
30 openssl-core.h(7), OSSL_PROVIDER-FIPS(7) OSSL_SELF_TEST_new(3)
31 OSSL_LIB_CTX(3)
32
34 The functions described here were added in OpenSSL 3.0.
35
37 Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved.
38
39 Licensed under the Apache License 2.0 (the "License"). You may not use
40 this file except in compliance with the License. You can obtain a copy
41 in the file LICENSE in the source distribution or at
42 <https://www.openssl.org/source/license.html>.
43
44
45
463.1.1 2023-08-31OSSL_SELF_TEST_SET_CALLBACK(3ossl)