1e71b7053SJung-uk Kim=pod 2e71b7053SJung-uk Kim 3e71b7053SJung-uk Kim=head1 NAME 4e71b7053SJung-uk Kim 5e71b7053SJung-uk KimSSL_set_verify_result - override result of peer certificate verification 6e71b7053SJung-uk Kim 7e71b7053SJung-uk Kim=head1 SYNOPSIS 8e71b7053SJung-uk Kim 9e71b7053SJung-uk Kim #include <openssl/ssl.h> 10e71b7053SJung-uk Kim 11e71b7053SJung-uk Kim void SSL_set_verify_result(SSL *ssl, long verify_result); 12e71b7053SJung-uk Kim 13e71b7053SJung-uk Kim=head1 DESCRIPTION 14e71b7053SJung-uk Kim 15e71b7053SJung-uk KimSSL_set_verify_result() sets B<verify_result> of the object B<ssl> to be the 16e71b7053SJung-uk Kimresult of the verification of the X509 certificate presented by the peer, 17e71b7053SJung-uk Kimif any. 18e71b7053SJung-uk Kim 19e71b7053SJung-uk Kim=head1 NOTES 20e71b7053SJung-uk Kim 21e71b7053SJung-uk KimSSL_set_verify_result() overrides the verification result. It only changes 22e71b7053SJung-uk Kimthe verification result of the B<ssl> object. It does not become part of the 23e71b7053SJung-uk Kimestablished session, so if the session is to be reused later, the original 24e71b7053SJung-uk Kimvalue will reappear. 25e71b7053SJung-uk Kim 26*b077aed3SPierre ProncheryThe valid codes for B<verify_result> are documented in L<openssl-verify(1)>. 27e71b7053SJung-uk Kim 28e71b7053SJung-uk Kim=head1 RETURN VALUES 29e71b7053SJung-uk Kim 30e71b7053SJung-uk KimSSL_set_verify_result() does not provide a return value. 31e71b7053SJung-uk Kim 32e71b7053SJung-uk Kim=head1 SEE ALSO 33e71b7053SJung-uk Kim 34e71b7053SJung-uk KimL<ssl(7)>, L<SSL_get_verify_result(3)>, 35e71b7053SJung-uk KimL<SSL_get_peer_certificate(3)>, 36*b077aed3SPierre ProncheryL<openssl-verify(1)> 37e71b7053SJung-uk Kim 38e71b7053SJung-uk Kim=head1 COPYRIGHT 39e71b7053SJung-uk Kim 40e71b7053SJung-uk KimCopyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved. 41e71b7053SJung-uk Kim 42*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License"). You may not use 43e71b7053SJung-uk Kimthis file except in compliance with the License. You can obtain a copy 44e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at 45e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>. 46e71b7053SJung-uk Kim 47e71b7053SJung-uk Kim=cut 48