1SSL_GET_VERIFY_RESULT(3)            OpenSSL           SSL_GET_VERIFY_RESULT(3)
2
3
4

NAME

6       SSL_get_verify_result - get result of peer certificate verification
7

SYNOPSIS

9        #include <openssl/ssl.h>
10
11        long SSL_get_verify_result(const SSL *ssl);
12

DESCRIPTION

14       SSL_get_verify_result() returns the result of the verification of the
15       X509 certificate presented by the peer, if any.
16

NOTES

18       SSL_get_verify_result() can only return one error code while the
19       verification of a certificate can fail because of many reasons at the
20       same time. Only the last verification error that occurred during the
21       processing is available from SSL_get_verify_result().
22
23       The verification result is part of the established session and is
24       restored when a session is reused.
25

BUGS

27       If no peer certificate was presented, the returned result code is
28       X509_V_OK. This is because no verification error occurred, it does
29       however not indicate success. SSL_get_verify_result() is only useful in
30       connection with SSL_get_peer_certificate(3).
31

RETURN VALUES

33       The following return values can currently occur:
34
35       X509_V_OK
36           The verification succeeded or no peer certificate was presented.
37
38       Any other value
39           Documented in verify(1).
40

SEE ALSO

42       ssl(7), SSL_set_verify_result(3), SSL_get_peer_certificate(3),
43       verify(1)
44
46       Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
47
48       Licensed under the OpenSSL license (the "License").  You may not use
49       this file except in compliance with the License.  You can obtain a copy
50       in the file LICENSE in the source distribution or at
51       <https://www.openssl.org/source/license.html>.
52
53
54
551.1.1i                            2021-07-22          SSL_GET_VERIFY_RESULT(3)
Impressum