OSSL_SELF_TEST_set_callback.pod 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. =pod
  2. =head1 NAME
  3. OSSL_SELF_TEST_set_callback,
  4. OSSL_SELF_TEST_get_callback - specify a callback for processing self tests
  5. =head1 SYNOPSIS
  6. #include <openssl/self_test.h>
  7. void OSSL_SELF_TEST_set_callback(OSSL_LIB_CTX *ctx, OSSL_CALLBACK *cb, void *cbarg);
  8. void OSSL_SELF_TEST_get_callback(OSSL_LIB_CTX *ctx, OSSL_CALLBACK **cb, void **cbarg);
  9. =head1 DESCRIPTION
  10. Set or gets the optional application callback (and the callback argument) that
  11. is called during self testing.
  12. The application callback B<OSSL_CALLBACK> is associated with a B<OSSL_LIB_CTX>.
  13. The application callback function receives information about a running self test,
  14. and may return a result to the calling self test.
  15. See L<openssl-core.h(7)> for further information on the callback.
  16. =head1 RETURN VALUES
  17. OSSL_SELF_TEST_get_callback() returns the callback and callback argument that
  18. has been set via OSSL_SELF_TEST_set_callback() for the given library context
  19. I<ctx>.
  20. These returned parameters will be NULL if OSSL_SELF_TEST_set_callback() has
  21. not been called.
  22. =head1 SEE ALSO
  23. L<openssl-core.h(7)>,
  24. L<OSSL_PROVIDER-FIPS(7)>
  25. L<OSSL_SELF_TEST_new(3)>
  26. L<OSSL_LIB_CTX(3)>
  27. =head1 HISTORY
  28. The functions described here were added in OpenSSL 3.0.
  29. =head1 COPYRIGHT
  30. Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
  31. Licensed under the Apache License 2.0 (the "License"). You may not use
  32. this file except in compliance with the License. You can obtain a copy
  33. in the file LICENSE in the source distribution or at
  34. L<https://www.openssl.org/source/license.html>.
  35. =cut