5 SSL_set_verify_result - override result of peer certificate verification
9 #include <openssl/ssl.h>
11 void SSL_set_verify_result(SSL *ssl, long verify_result);
15 SSL_set_verify_result() sets B<verify_result> of the object B<ssl> to be the
16 result of the verification of the X509 certificate presented by the peer,
21 SSL_set_verify_result() overrides the verification result. It only changes
22 the verification result of the B<ssl> object. It does not become part of the
23 established session, so if the session is to be reused later, the original
26 The valid codes for B<verify_result> are documented in L<verify(1)>.
30 SSL_set_verify_result() does not provide a return value.
34 L<ssl(7)>, L<SSL_get_verify_result(3)>,
35 L<SSL_get_peer_certificate(3)>,
40 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
42 Licensed under the OpenSSL license (the "License"). You may not use
43 this file except in compliance with the License. You can obtain a copy
44 in the file LICENSE in the source distribution or at
45 L<https://www.openssl.org/source/license.html>.