diff options
Diffstat (limited to 'src/lib/libssl/doc/SSL_get_peer_cert_chain.3')
-rw-r--r-- | src/lib/libssl/doc/SSL_get_peer_cert_chain.3 | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/lib/libssl/doc/SSL_get_peer_cert_chain.3 b/src/lib/libssl/doc/SSL_get_peer_cert_chain.3 deleted file mode 100644 index e4faece5d0..0000000000 --- a/src/lib/libssl/doc/SSL_get_peer_cert_chain.3 +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | .\" | ||
2 | .\" $OpenBSD: SSL_get_peer_cert_chain.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ | ||
3 | .\" | ||
4 | .Dd $Mdocdate: December 2 2014 $ | ||
5 | .Dt SSL_GET_PEER_CERT_CHAIN 3 | ||
6 | .Os | ||
7 | .Sh NAME | ||
8 | .Nm SSL_get_peer_cert_chain | ||
9 | .Nd get the X509 certificate chain of the peer | ||
10 | .Sh SYNOPSIS | ||
11 | .In openssl/ssl.h | ||
12 | .Ft STACK_OF(X509) * | ||
13 | .Fn SSL_get_peer_cert_chain "const SSL *ssl" | ||
14 | .Sh DESCRIPTION | ||
15 | .Fn SSL_get_peer_cert_chain | ||
16 | returns a pointer to | ||
17 | .Dv STACK_OF Ns Po Vt X509 Pc | ||
18 | certificates forming the certificate chain of the peer. | ||
19 | If called on the client side, the stack also contains the peer's certificate; | ||
20 | if called on the server side, the peer's certificate must be obtained | ||
21 | separately using | ||
22 | .Xr SSL_get_peer_certificate 3 . | ||
23 | If the peer did not present a certificate, | ||
24 | .Dv NULL | ||
25 | is returned. | ||
26 | .Sh NOTES | ||
27 | The peer certificate chain is not necessarily available after reusing a | ||
28 | session, in which case a | ||
29 | .Dv NULL | ||
30 | pointer is returned. | ||
31 | .Pp | ||
32 | The reference count of the | ||
33 | .Dv STACK_OF Ns Po Vt X509 Pc | ||
34 | object is not incremented. | ||
35 | If the corresponding session is freed, the pointer must not be used any longer. | ||
36 | .Sh RETURN VALUES | ||
37 | The following return values can occur: | ||
38 | .Bl -tag -width Ds | ||
39 | .It Dv NULL | ||
40 | No certificate was presented by the peer or no connection was established or | ||
41 | the certificate chain is no longer available when a session is reused. | ||
42 | .It Pointer to a Dv STACK_OF Ns Po X509 Pc | ||
43 | The return value points to the certificate chain presented by the peer. | ||
44 | .El | ||
45 | .Sh SEE ALSO | ||
46 | .Xr ssl 3 , | ||
47 | .Xr SSL_get_peer_certificate 3 | ||