1SSL_SET_VERIFY_RESULT(3) OpenSSL SSL_SET_VERIFY_RESULT(3)
2
3
4
6 SSL_set_verify_result - override result of peer certificate
7 verification
8
10 #include <openssl/ssl.h>
11
12 void SSL_set_verify_result(SSL *ssl, long verify_result);
13
15 SSL_set_verify_result() sets verify_result of the object ssl to be the
16 result of the verification of the X509 certificate presented by the
17 peer, if any.
18
20 SSL_set_verify_result() overrides the verification result. It only
21 changes the verification result of the ssl object. It does not become
22 part of the established session, so if the session is to be reused
23 later, the original value will reappear.
24
25 The valid codes for verify_result are documented in verify(1).
26
28 SSL_set_verify_result() does not provide a return value.
29
31 ssl(7), SSL_get_verify_result(3), SSL_get_peer_certificate(3),
32 verify(1)
33
35 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
36
37 Licensed under the OpenSSL license (the "License"). You may not use
38 this file except in compliance with the License. You can obtain a copy
39 in the file LICENSE in the source distribution or at
40 <https://www.openssl.org/source/license.html>.
41
42
43
441.1.1q 2023-07-20 SSL_SET_VERIFY_RESULT(3)