summaryrefslogtreecommitdiff
path: root/lib/libssl/doc/SSL_set_verify_result.3
blob: 9d5474d07a049a5cb382fc4c9743efa471e5c38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.\"
.\"	$OpenBSD: SSL_set_verify_result.3,v 1.2 2014/12/02 14:11:01 jmc Exp $
.\"
.Dd $Mdocdate: December 2 2014 $
.Dt SSL_SET_VERIFY_RESULT 3
.Os
.Sh NAME
.Nm SSL_set_verify_result
.Nd override result of peer certificate verification
.Sh SYNOPSIS
.In openssl/ssl.h
.Ft void
.Fn SSL_set_verify_result "SSL *ssl" "long verify_result"
.Sh DESCRIPTION
.Fn SSL_set_verify_result
sets
.Fa verify_result
of the object
.Fa ssl
to be the result of the verification of the X509 certificate presented by the
peer, if any.
.Sh NOTES
.Fn SSL_set_verify_result
overrides the verification result.
It only changes the verification result of the
.Fa ssl
object.
It does not become part of the established session, so if the session is to be
reused later, the original value will reappear.
.Pp
The valid codes for
.Fa verify_result
are documented in
.Xr openssl 1 .
.Sh RETURN VALUES
.Fn SSL_set_verify_result
does not provide a return value.
.Sh SEE ALSO
.Xr openssl 1 ,
.Xr ssl 3 ,
.Xr SSL_get_peer_certificate 3 ,
.Xr SSL_get_verify_result 3