X509_STORE_set_verify_cb_func.pod 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. =pod
  2. =head1 NAME
  3. X509_STORE_set_verify_cb_func, X509_STORE_set_verify_cb - set verification callback
  4. =head1 SYNOPSIS
  5. #include <openssl/x509_vfy.h>
  6. void X509_STORE_set_verify_cb(X509_STORE *st,
  7. int (*verify_cb)(int ok, X509_STORE_CTX *ctx));
  8. void X509_STORE_set_verify_cb_func(X509_STORE *st,
  9. int (*verify_cb)(int ok, X509_STORE_CTX *ctx));
  10. =head1 DESCRIPTION
  11. X509_STORE_set_verify_cb() sets the verification callback of B<ctx> to
  12. B<verify_cb> overwriting any existing callback.
  13. X509_STORE_set_verify_cb_func() also sets the verification callback but it
  14. is implemented as a macro.
  15. =head1 NOTES
  16. The verification callback from an B<X509_STORE> is inherited by
  17. the corresponding B<X509_STORE_CTX> structure when it is initialized. This can
  18. be used to set the verification callback when the B<X509_STORE_CTX> is
  19. otherwise inaccessible (for example during S/MIME verification).
  20. =head1 BUGS
  21. The macro version of this function was the only one available before
  22. OpenSSL 1.0.0.
  23. =head1 RETURN VALUES
  24. X509_STORE_set_verify_cb() and X509_STORE_set_verify_cb_func() do not return
  25. a value.
  26. =head1 SEE ALSO
  27. L<X509_STORE_CTX_set_verify_cb(3)|X509_STORE_CTX_set_verify_cb(3)>
  28. L<CMS_verify(3)|CMS_verify(3)>
  29. =head1 HISTORY
  30. X509_STORE_set_verify_cb_func() is available in all versions of SSLeay and
  31. OpenSSL.
  32. X509_STORE_set_verify_cb() was added to OpenSSL 1.0.0.
  33. =cut