1*2175Sjp161948=pod 2*2175Sjp161948 3*2175Sjp161948=head1 NAME 4*2175Sjp161948 5*2175Sjp161948SSL_set_verify_result - override result of peer certificate verification 6*2175Sjp161948 7*2175Sjp161948=head1 SYNOPSIS 8*2175Sjp161948 9*2175Sjp161948 #include <openssl/ssl.h> 10*2175Sjp161948 11*2175Sjp161948 void SSL_set_verify_result(SSL *ssl, long verify_result); 12*2175Sjp161948 13*2175Sjp161948=head1 DESCRIPTION 14*2175Sjp161948 15*2175Sjp161948SSL_set_verify_result() sets B<verify_result> of the object B<ssl> to be the 16*2175Sjp161948result of the verification of the X509 certificate presented by the peer, 17*2175Sjp161948if any. 18*2175Sjp161948 19*2175Sjp161948=head1 NOTES 20*2175Sjp161948 21*2175Sjp161948SSL_set_verify_result() overrides the verification result. It only changes 22*2175Sjp161948the verification result of the B<ssl> object. It does not become part of the 23*2175Sjp161948established session, so if the session is to be reused later, the original 24*2175Sjp161948value will reappear. 25*2175Sjp161948 26*2175Sjp161948The valid codes for B<verify_result> are documented in L<verify(1)|verify(1)>. 27*2175Sjp161948 28*2175Sjp161948=head1 RETURN VALUES 29*2175Sjp161948 30*2175Sjp161948SSL_set_verify_result() does not provide a return value. 31*2175Sjp161948 32*2175Sjp161948=head1 SEE ALSO 33*2175Sjp161948 34*2175Sjp161948L<ssl(3)|ssl(3)>, L<SSL_get_verify_result(3)|SSL_get_verify_result(3)>, 35*2175Sjp161948L<SSL_get_peer_certificate(3)|SSL_get_peer_certificate(3)>, 36*2175Sjp161948L<verify(1)|verify(1)> 37*2175Sjp161948 38*2175Sjp161948=cut 39