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(3), SSL_set_verify_result(3), SSL_get_peer_certificate(3),
43       verify(1)
44
45
46
471.0.2o                            2019-09-10          SSL_get_verify_result(3)
Impressum