SSL_CTX_get_verify_mode.pod 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. =pod
  2. =head1 NAME
  3. SSL_CTX_get_verify_mode, SSL_get_verify_mode, SSL_CTX_get_verify_depth, SSL_get_verify_depth, SSL_get_verify_callback, SSL_CTX_get_verify_callback - get currently set verification parameters
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);
  7. int SSL_get_verify_mode(const SSL *ssl);
  8. int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);
  9. int SSL_get_verify_depth(const SSL *ssl);
  10. int (*SSL_CTX_get_verify_callback(const SSL_CTX *ctx))(int, X509_STORE_CTX *);
  11. int (*SSL_get_verify_callback(const SSL *ssl))(int, X509_STORE_CTX *);
  12. =head1 DESCRIPTION
  13. SSL_CTX_get_verify_mode() returns the verification mode currently set in
  14. B<ctx>.
  15. SSL_get_verify_mode() returns the verification mode currently set in
  16. B<ssl>.
  17. SSL_CTX_get_verify_depth() returns the verification depth limit currently set
  18. in B<ctx>. If no limit has been explicitly set, -1 is returned and the
  19. default value will be used.
  20. SSL_get_verify_depth() returns the verification depth limit currently set
  21. in B<ssl>. If no limit has been explicitly set, -1 is returned and the
  22. default value will be used.
  23. SSL_CTX_get_verify_callback() returns a function pointer to the verification
  24. callback currently set in B<ctx>. If no callback was explicitly set, the
  25. NULL pointer is returned and the default callback will be used.
  26. SSL_get_verify_callback() returns a function pointer to the verification
  27. callback currently set in B<ssl>. If no callback was explicitly set, the
  28. NULL pointer is returned and the default callback will be used.
  29. =head1 RETURN VALUES
  30. See DESCRIPTION
  31. =head1 SEE ALSO
  32. L<ssl(7)>, L<SSL_CTX_set_verify(3)>
  33. =head1 COPYRIGHT
  34. Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
  35. Licensed under the Apache License 2.0 (the "License"). You may not use
  36. this file except in compliance with the License. You can obtain a copy
  37. in the file LICENSE in the source distribution or at
  38. L<https://www.openssl.org/source/license.html>.
  39. =cut