summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2016-12-03 09:13:20 +0000
committerschwarze <>2016-12-03 09:13:20 +0000
commit73b813c481fe3e14433c7edf5b35635ab396bff1 (patch)
treeef2af800b32021791054d2fafc24ea3f0febae32
parentcb5ef41adec01ecf587b786d9a402ce51bb97b59 (diff)
downloadopenbsd-73b813c481fe3e14433c7edf5b35635ab396bff1.tar.gz
openbsd-73b813c481fe3e14433c7edf5b35635ab396bff1.tar.bz2
openbsd-73b813c481fe3e14433c7edf5b35635ab396bff1.zip
Add Copyright and license.
Some additional explanations from OpenSSL.
-rw-r--r--src/lib/libssl/man/SSL_get_peer_cert_chain.367
1 files changed, 61 insertions, 6 deletions
diff --git a/src/lib/libssl/man/SSL_get_peer_cert_chain.3 b/src/lib/libssl/man/SSL_get_peer_cert_chain.3
index bf5d04f3cf..0fd44f7c2a 100644
--- a/src/lib/libssl/man/SSL_get_peer_cert_chain.3
+++ b/src/lib/libssl/man/SSL_get_peer_cert_chain.3
@@ -1,12 +1,60 @@
1.\" $OpenBSD: SSL_get_peer_cert_chain.3,v 1.2 2016/12/03 09:13:20 schwarze Exp $
2.\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400
1.\" 3.\"
2.\" $OpenBSD: SSL_get_peer_cert_chain.3,v 1.1 2016/11/05 15:32:20 schwarze Exp $ 4.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>.
5.\" Copyright (c) 2000, 2005, 2014, 2016 The OpenSSL Project.
6.\" All rights reserved.
3.\" 7.\"
4.Dd $Mdocdate: November 5 2016 $ 8.\" Redistribution and use in source and binary forms, with or without
9.\" modification, are permitted provided that the following conditions
10.\" are met:
11.\"
12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer.
14.\"
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\" notice, this list of conditions and the following disclaimer in
17.\" the documentation and/or other materials provided with the
18.\" distribution.
19.\"
20.\" 3. All advertising materials mentioning features or use of this
21.\" software must display the following acknowledgment:
22.\" "This product includes software developed by the OpenSSL Project
23.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
24.\"
25.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
26.\" endorse or promote products derived from this software without
27.\" prior written permission. For written permission, please contact
28.\" openssl-core@openssl.org.
29.\"
30.\" 5. Products derived from this software may not be called "OpenSSL"
31.\" nor may "OpenSSL" appear in their names without prior written
32.\" permission of the OpenSSL Project.
33.\"
34.\" 6. Redistributions of any form whatsoever must retain the following
35.\" acknowledgment:
36.\" "This product includes software developed by the OpenSSL Project
37.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
38.\"
39.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
40.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
42.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
43.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
44.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
46.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
48.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
50.\" OF THE POSSIBILITY OF SUCH DAMAGE.
51.\"
52.Dd $Mdocdate: December 3 2016 $
5.Dt SSL_GET_PEER_CERT_CHAIN 3 53.Dt SSL_GET_PEER_CERT_CHAIN 3
6.Os 54.Os
7.Sh NAME 55.Sh NAME
8.Nm SSL_get_peer_cert_chain 56.Nm SSL_get_peer_cert_chain
9.Nd get the X509 certificate chain of the peer 57.Nd get the X509 certificate chain sent by the peer
10.Sh SYNOPSIS 58.Sh SYNOPSIS
11.In openssl/ssl.h 59.In openssl/ssl.h
12.Ft STACK_OF(X509) * 60.Ft STACK_OF(X509) *
@@ -23,11 +71,18 @@ separately using
23If the peer did not present a certificate, 71If the peer did not present a certificate,
24.Dv NULL 72.Dv NULL
25is returned. 73is returned.
26.Sh NOTES 74.Pp
27The peer certificate chain is not necessarily available after reusing a 75.Fn SSL_get_peer_chain
28session, in which case a 76returns the peer chain as sent by the peer: it only consists of
77certificates the peer has sent (in the order the peer has sent them)
78and it is not a verified chain.
79.Pp
80If the session is resumed, peers do not send certificates, so a
29.Dv NULL 81.Dv NULL
30pointer is returned. 82pointer is returned.
83Applications can call
84.Fn SSL_session_reused
85to determine whether a session is resumed.
31.Pp 86.Pp
32The reference count of the 87The reference count of the
33.Dv STACK_OF Ns Po Vt X509 Pc 88.Dv STACK_OF Ns Po Vt X509 Pc