diff options
author | schwarze <> | 2016-12-05 16:13:19 +0000 |
---|---|---|
committer | schwarze <> | 2016-12-05 16:13:19 +0000 |
commit | c6c7464167596c51259a99d8182a460758707d6a (patch) | |
tree | 15f276c01b6fdc6b49b79b29bd46ccd871648bb7 /src/lib | |
parent | 775cd7a13393b0cf5d8e3feb6200f9cbd3f86267 (diff) | |
download | openbsd-c6c7464167596c51259a99d8182a460758707d6a.tar.gz openbsd-c6c7464167596c51259a99d8182a460758707d6a.tar.bz2 openbsd-c6c7464167596c51259a99d8182a460758707d6a.zip |
import the relevant parts of X509_STORE_get0_param(3) from OpenSSL, but
since we don't have that function, call the page X509_STORE_set1_param(3)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/man/X509_STORE_set1_param.3 | 74 |
2 files changed, 76 insertions, 1 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile index 63b97d44ae..3c14577966 100644 --- a/src/lib/libcrypto/man/Makefile +++ b/src/lib/libcrypto/man/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.64 2016/12/05 15:56:46 schwarze Exp $ | 1 | # $OpenBSD: Makefile,v 1.65 2016/12/05 16:13:19 schwarze Exp $ |
2 | 2 | ||
3 | .include <bsd.own.mk> | 3 | .include <bsd.own.mk> |
4 | 4 | ||
@@ -185,6 +185,7 @@ MAN= \ | |||
185 | X509_STORE_CTX_new.3 \ | 185 | X509_STORE_CTX_new.3 \ |
186 | X509_STORE_CTX_set_verify_cb.3 \ | 186 | X509_STORE_CTX_set_verify_cb.3 \ |
187 | X509_STORE_set_verify_cb_func.3 \ | 187 | X509_STORE_set_verify_cb_func.3 \ |
188 | X509_STORE_set1_param.3 \ | ||
188 | X509_VERIFY_PARAM_set_flags.3 \ | 189 | X509_VERIFY_PARAM_set_flags.3 \ |
189 | X509_check_ca.3 \ | 190 | X509_check_ca.3 \ |
190 | X509_check_host.3 \ | 191 | X509_check_host.3 \ |
diff --git a/src/lib/libcrypto/man/X509_STORE_set1_param.3 b/src/lib/libcrypto/man/X509_STORE_set1_param.3 new file mode 100644 index 0000000000..abd1b872f3 --- /dev/null +++ b/src/lib/libcrypto/man/X509_STORE_set1_param.3 | |||
@@ -0,0 +1,74 @@ | |||
1 | .\" $OpenSSL$ | ||
2 | .\" OpenSSL 99d63d46 | ||
3 | .\" | ||
4 | .\" This file was written by Christian Heimes <cheimes@redhat.com>. | ||
5 | .\" Copyright (c) 2016 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: December 5 2016 $ | ||
52 | .Dt X509_STORE_SET1_PARAM 3 | ||
53 | .Os | ||
54 | .Sh NAME | ||
55 | .Nm X509_STORE_set1_param | ||
56 | .Nd set X509_STORE verification parameters | ||
57 | .Sh SYNOPSIS | ||
58 | .In openssl/x509_vfy.h | ||
59 | .Ft int | ||
60 | .Fo X509_STORE_set1_param | ||
61 | .Fa "X509_STORE *ctx" | ||
62 | .Fa "X509_VERIFY_PARAM *pm" | ||
63 | .Fc | ||
64 | .Sh DESCRIPTION | ||
65 | .Fn X509_STORE_set1_param | ||
66 | sets the verification parameters to | ||
67 | .Fa pm | ||
68 | for | ||
69 | .Fa ctx . | ||
70 | .Sh RETURN VALUES | ||
71 | .Fn X509_STORE_set1_param | ||
72 | returns 1 for success and 0 for failure. | ||
73 | .Sh SEE ALSO | ||
74 | .Xr X509_STORE_new 3 | ||