summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2016-11-30 13:39:38 +0000
committerschwarze <>2016-11-30 13:39:38 +0000
commit4bfc3386009b994c1c8a34abd31da515d13c650d (patch)
tree1dda4629f35f96a4511cfc57e7d0d530d2252988 /src/lib
parent6f624e554e5a4da488ca2928eb86ab700af5c878 (diff)
downloadopenbsd-4bfc3386009b994c1c8a34abd31da515d13c650d.tar.gz
openbsd-4bfc3386009b994c1c8a34abd31da515d13c650d.tar.bz2
openbsd-4bfc3386009b994c1c8a34abd31da515d13c650d.zip
Import the relevant parts of SSL_CTX_get0_param(3) from OpenSSL.
Call it SSL_set1_param(3) since we don't have these get0 functions.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/man/Makefile3
-rw-r--r--src/lib/libssl/man/SSL_set1_param.388
2 files changed, 90 insertions, 1 deletions
diff --git a/src/lib/libssl/man/Makefile b/src/lib/libssl/man/Makefile
index 320177169e..8abea7be9f 100644
--- a/src/lib/libssl/man/Makefile
+++ b/src/lib/libssl/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.38 2016/11/28 21:05:21 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.39 2016/11/30 13:39:38 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -75,6 +75,7 @@ MAN = BIO_f_ssl.3 \
75 SSL_read.3 \ 75 SSL_read.3 \
76 SSL_rstate_string.3 \ 76 SSL_rstate_string.3 \
77 SSL_session_reused.3 \ 77 SSL_session_reused.3 \
78 SSL_set1_param.3 \
78 SSL_set_bio.3 \ 79 SSL_set_bio.3 \
79 SSL_set_connect_state.3 \ 80 SSL_set_connect_state.3 \
80 SSL_set_fd.3 \ 81 SSL_set_fd.3 \
diff --git a/src/lib/libssl/man/SSL_set1_param.3 b/src/lib/libssl/man/SSL_set1_param.3
new file mode 100644
index 0000000000..ae67d4796e
--- /dev/null
+++ b/src/lib/libssl/man/SSL_set1_param.3
@@ -0,0 +1,88 @@
1.\" $OpenBSD: SSL_set1_param.3,v 1.1 2016/11/30 13:39:38 schwarze Exp $
2.\" OpenSSL SSL_CTX_get0_param.pod 99d63d46 Oct 26 13:56:48 2016 -0400
3.\"
4.\" This file was written by Dr. Stephen Henson <steve@openssl.org>.
5.\" Copyright (c) 2015 The OpenSSL Project. All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\"
11.\" 1. Redistributions of source code must retain the above copyright
12.\" notice, this list of conditions and the following disclaimer.
13.\"
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\" notice, this list of conditions and the following disclaimer in
16.\" the documentation and/or other materials provided with the
17.\" distribution.
18.\"
19.\" 3. All advertising materials mentioning features or use of this
20.\" software must display the following acknowledgment:
21.\" "This product includes software developed by the OpenSSL Project
22.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
23.\"
24.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
25.\" endorse or promote products derived from this software without
26.\" prior written permission. For written permission, please contact
27.\" openssl-core@openssl.org.
28.\"
29.\" 5. Products derived from this software may not be called "OpenSSL"
30.\" nor may "OpenSSL" appear in their names without prior written
31.\" permission of the OpenSSL Project.
32.\"
33.\" 6. Redistributions of any form whatsoever must retain the following
34.\" acknowledgment:
35.\" "This product includes software developed by the OpenSSL Project
36.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
37.\"
38.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
39.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
41.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
42.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
45.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
46.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
47.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\"
51.Dd $Mdocdate: November 30 2016 $
52.Dt SSL_SET1_PARAM 3
53.Os
54.Sh NAME
55.Nm SSL_CTX_set1_param ,
56.Nm SSL_set1_param
57.Nd set verification parameters
58.Sh SYNOPSIS
59.In openssl/ssl.h
60.Ft int
61.Fo SSL_CTX_set1_param
62.Fa "SSL_CTX *ctx"
63.Fa "X509_VERIFY_PARAM *vpm"
64.Fc
65.Ft int
66.Fo SSL_set1_param
67.Fa "SSL *ssl"
68.Fa "X509_VERIFY_PARAM *vpm"
69.Fc
70.Sh DESCRIPTION
71.Fn SSL_CTX_set1_param
72and
73.Fn SSL_set1_param
74set the verification parameters to
75.Fa vpm
76for
77.Fa ctx
78or
79.Fa ssl .
80.Sh RETURN VALUES
81.Fn SSL_CTX_set1_param
82and
83.Fn SSL_set1_param
84return 1 for success or 0 for failure.
85.Sh SEE ALSO
86.Xr X509_VERIFY_PARAM_set_flags 3
87.Sh HISTORY
88These functions were first added to OpenSSL 1.0.2.