1SSL_get_verify_result(3) OpenSSL SSL_get_verify_result(3)
2
3
4
6 SSL_get_verify_result - get result of peer certificate verification
7
9 #include <openssl/ssl.h>
10
11 long SSL_get_verify_result(const SSL *ssl);
12
14 SSL_get_verify_result() returns the result of the verification of the
15 X509 certificate presented by the peer, if any.
16
18 SSL_get_verify_result() can only return one error code while the veri‐
19 fication of a certificate can fail because of many reasons at the same
20 time. Only the last verification error that occurred during the pro‐
21 cessing 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
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 how‐
29 ever not indicate success. SSL_get_verify_result() is only useful in
30 connection with SSL_get_peer_certificate(3).
31
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
42 ssl(3), SSL_set_verify_result(3), SSL_get_peer_certificate(3), ver‐
43 ify(1)
44
45
46
470.9.8b 2005-03-30 SSL_get_verify_result(3)