SSL_set_verify_result.pod 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. =pod
  2. =head1 NAME
  3. SSL_set_verify_result - override result of peer certificate verification
  4. =head1 SYNOPSIS
  5. #include <openssl/ssl.h>
  6. void SSL_set_verify_result(SSL *ssl, long verify_result);
  7. =head1 DESCRIPTION
  8. SSL_set_verify_result() sets B<verify_result> of the object B<ssl> to be the
  9. result of the verification of the X509 certificate presented by the peer,
  10. if any.
  11. =head1 NOTES
  12. SSL_set_verify_result() overrides the verification result. It only changes
  13. the verification result of the B<ssl> object. It does not become part of the
  14. established session, so if the session is to be reused later, the original
  15. value will reappear.
  16. The valid codes for B<verify_result> are documented in L<openssl-verify(1)>.
  17. =head1 RETURN VALUES
  18. SSL_set_verify_result() does not provide a return value.
  19. =head1 SEE ALSO
  20. L<ssl(7)>, L<SSL_get_verify_result(3)>,
  21. L<SSL_get_peer_certificate(3)>,
  22. L<openssl-verify(1)>
  23. =head1 COPYRIGHT
  24. Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
  25. Licensed under the Apache License 2.0 (the "License"). You may not use
  26. this file except in compliance with the License. You can obtain a copy
  27. in the file LICENSE in the source distribution or at
  28. L<https://www.openssl.org/source/license.html>.
  29. =cut