diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/man/X509_OBJECT_get0_X509.3 | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/X509_STORE_CTX_new.3 | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/X509_STORE_set1_param.3 | 183 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3 | 7 |
4 files changed, 137 insertions, 59 deletions
diff --git a/src/lib/libcrypto/man/X509_OBJECT_get0_X509.3 b/src/lib/libcrypto/man/X509_OBJECT_get0_X509.3 index 8d39028b8e..868574d8a2 100644 --- a/src/lib/libcrypto/man/X509_OBJECT_get0_X509.3 +++ b/src/lib/libcrypto/man/X509_OBJECT_get0_X509.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: X509_OBJECT_get0_X509.3,v 1.1 2018/02/25 20:26:51 schwarze Exp $ | 1 | .\" $OpenBSD: X509_OBJECT_get0_X509.3,v 1.2 2018/02/25 22:24:18 schwarze Exp $ |
| 2 | .\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org> | 2 | .\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org> |
| 3 | .\" | 3 | .\" |
| 4 | .\" Permission to use, copy, modify, and distribute this software for any | 4 | .\" Permission to use, copy, modify, and distribute this software for any |
| @@ -205,6 +205,7 @@ is | |||
| 205 | .Dv NULL | 205 | .Dv NULL |
| 206 | or no match is found. | 206 | or no match is found. |
| 207 | .Sh SEE ALSO | 207 | .Sh SEE ALSO |
| 208 | .Xr X509_STORE_get0_objects 3 , | ||
| 208 | .Xr X509_STORE_load_locations 3 , | 209 | .Xr X509_STORE_load_locations 3 , |
| 209 | .Xr X509_STORE_new 3 | 210 | .Xr X509_STORE_new 3 |
| 210 | .\" The type X509_OBJECT is also used | 211 | .\" The type X509_OBJECT is also used |
diff --git a/src/lib/libcrypto/man/X509_STORE_CTX_new.3 b/src/lib/libcrypto/man/X509_STORE_CTX_new.3 index 31c7704178..c1d8acd0d2 100644 --- a/src/lib/libcrypto/man/X509_STORE_CTX_new.3 +++ b/src/lib/libcrypto/man/X509_STORE_CTX_new.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: X509_STORE_CTX_new.3,v 1.10 2018/02/25 17:46:38 schwarze Exp $ | 1 | .\" $OpenBSD: X509_STORE_CTX_new.3,v 1.11 2018/02/25 22:24:18 schwarze Exp $ |
| 2 | .\" full merge up to: OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 | 2 | .\" full merge up to: OpenSSL 186bb907 Apr 13 11:05:13 2015 -0700 |
| 3 | .\" selective merge up to: OpenSSL 7643a172 Apr 21 13:35:51 2017 +0200 | 3 | .\" selective merge up to: OpenSSL 7643a172 Apr 21 13:35:51 2017 +0200 |
| 4 | .\" | 4 | .\" |
| @@ -318,6 +318,7 @@ returns an internal pointer. | |||
| 318 | .Sh SEE ALSO | 318 | .Sh SEE ALSO |
| 319 | .Xr X509_STORE_CTX_get_error 3 , | 319 | .Xr X509_STORE_CTX_get_error 3 , |
| 320 | .Xr X509_STORE_new 3 , | 320 | .Xr X509_STORE_new 3 , |
| 321 | .Xr X509_STORE_set1_param 3 , | ||
| 321 | .Xr X509_verify_cert 3 , | 322 | .Xr X509_verify_cert 3 , |
| 322 | .Xr X509_VERIFY_PARAM_set_flags 3 | 323 | .Xr X509_VERIFY_PARAM_set_flags 3 |
| 323 | .Sh HISTORY | 324 | .Sh HISTORY |
diff --git a/src/lib/libcrypto/man/X509_STORE_set1_param.3 b/src/lib/libcrypto/man/X509_STORE_set1_param.3 index bed64c4c4b..adbf8f5a1e 100644 --- a/src/lib/libcrypto/man/X509_STORE_set1_param.3 +++ b/src/lib/libcrypto/man/X509_STORE_set1_param.3 | |||
| @@ -1,75 +1,148 @@ | |||
| 1 | .\" $OpenBSD: X509_STORE_set1_param.3,v 1.4 2018/02/25 17:46:39 schwarze Exp $ | 1 | .\" $OpenBSD: X509_STORE_set1_param.3,v 1.5 2018/02/25 22:24:18 schwarze Exp $ |
| 2 | .\" OpenSSL 99d63d46 | 2 | .\" content checked up to: |
| 3 | .\" OpenSSL man3/X509_STORE_get0_param e90fc053 Jul 15 09:39:45 2017 -0400 | ||
| 3 | .\" | 4 | .\" |
| 4 | .\" This file was written by Christian Heimes <cheimes@redhat.com>. | 5 | .\" Copyright (c) 2018 Ingo Schwarze <schwarze@openbsd.org> |
| 5 | .\" Copyright (c) 2016 The OpenSSL Project. All rights reserved. | ||
| 6 | .\" | 6 | .\" |
| 7 | .\" Redistribution and use in source and binary forms, with or without | 7 | .\" Permission to use, copy, modify, and distribute this software for any |
| 8 | .\" modification, are permitted provided that the following conditions | 8 | .\" purpose with or without fee is hereby granted, provided that the above |
| 9 | .\" are met: | 9 | .\" copyright notice and this permission notice appear in all copies. |
| 10 | .\" | 10 | .\" |
| 11 | .\" 1. Redistributions of source code must retain the above copyright | 11 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 12 | .\" notice, this list of conditions and the following disclaimer. | 12 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 13 | .\" | 13 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 14 | .\" 2. Redistributions in binary form must reproduce the above copyright | 14 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 15 | .\" notice, this list of conditions and the following disclaimer in | 15 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 16 | .\" the documentation and/or other materials provided with the | 16 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 17 | .\" distribution. | 17 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 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 | .\" | 18 | .\" |
| 51 | .Dd $Mdocdate: February 25 2018 $ | 19 | .Dd $Mdocdate: February 25 2018 $ |
| 52 | .Dt X509_STORE_SET1_PARAM 3 | 20 | .Dt X509_STORE_SET1_PARAM 3 |
| 53 | .Os | 21 | .Os |
| 54 | .Sh NAME | 22 | .Sh NAME |
| 55 | .Nm X509_STORE_set1_param | 23 | .Nm X509_STORE_set1_param , |
| 56 | .Nd set X509_STORE verification parameters | 24 | .Nm X509_STORE_set_flags , |
| 25 | .Nm X509_STORE_set_purpose , | ||
| 26 | .Nm X509_STORE_set_trust , | ||
| 27 | .Nm X509_STORE_set_depth , | ||
| 28 | .Nm X509_STORE_add_cert , | ||
| 29 | .Nm X509_STORE_add_crl , | ||
| 30 | .Nm X509_STORE_get0_objects | ||
| 31 | .Nd get and set X509_STORE data | ||
| 57 | .Sh SYNOPSIS | 32 | .Sh SYNOPSIS |
| 58 | .In openssl/x509_vfy.h | 33 | .In openssl/x509_vfy.h |
| 59 | .Ft int | 34 | .Ft int |
| 60 | .Fo X509_STORE_set1_param | 35 | .Fo X509_STORE_set1_param |
| 61 | .Fa "X509_STORE *ctx" | 36 | .Fa "X509_STORE *store" |
| 62 | .Fa "X509_VERIFY_PARAM *pm" | 37 | .Fa "X509_VERIFY_PARAM *pm" |
| 63 | .Fc | 38 | .Fc |
| 39 | .Ft int | ||
| 40 | .Fo X509_STORE_set_flags | ||
| 41 | .Fa "X509_STORE *store" | ||
| 42 | .Fa "unsigned long flags" | ||
| 43 | .Fc | ||
| 44 | .Ft int | ||
| 45 | .Fo X509_STORE_set_purpose | ||
| 46 | .Fa "X509_STORE *store" | ||
| 47 | .Fa "int purpose" | ||
| 48 | .Fc | ||
| 49 | .Ft int | ||
| 50 | .Fo X509_STORE_set_trust | ||
| 51 | .Fa "X509_STORE *store" | ||
| 52 | .Fa "int trust" | ||
| 53 | .Fc | ||
| 54 | .Ft int | ||
| 55 | .Fo X509_STORE_set_depth | ||
| 56 | .Fa "X509_STORE *store" | ||
| 57 | .Fa "int depth" | ||
| 58 | .Fc | ||
| 59 | .Ft int | ||
| 60 | .Fo X509_STORE_add_cert | ||
| 61 | .Fa "X509_STORE *store" | ||
| 62 | .Fa "X509 *x" | ||
| 63 | .Fc | ||
| 64 | .Ft int | ||
| 65 | .Fo X509_STORE_add_crl | ||
| 66 | .Fa "X509_STORE *store" | ||
| 67 | .Fa "X509_CRL *crl" | ||
| 68 | .Fc | ||
| 69 | .Ft STACK_OF(X509_OBJECT) * | ||
| 70 | .Fo X509_STORE_get0_objects | ||
| 71 | .Fa "X509_STORE *store" | ||
| 72 | .Fc | ||
| 64 | .Sh DESCRIPTION | 73 | .Sh DESCRIPTION |
| 65 | .Fn X509_STORE_set1_param | 74 | .Fn X509_STORE_set1_param |
| 66 | sets the verification parameters to | 75 | copies the verification parameters from |
| 67 | .Fa pm | 76 | .Fa pm |
| 68 | for | 77 | into the verification parameter object contained in the |
| 69 | .Fa ctx . | 78 | .Fa store . |
| 79 | .Pp | ||
| 80 | .Fn X509_VERIFY_PARAM_set_flags , | ||
| 81 | .Fn X509_STORE_set_purpose , | ||
| 82 | .Fn X509_STORE_set_trust , | ||
| 83 | and | ||
| 84 | .Fn X509_STORE_set_depth | ||
| 85 | call | ||
| 86 | .Fn X509_VERIFY_PARAM_set_flags , | ||
| 87 | .Fn X509_VERIFY_PARAM_set_purpose , | ||
| 88 | .Fn X509_VERIFY_PARAM_set_trust , | ||
| 89 | and | ||
| 90 | .Fn X509_VERIFY_PARAM_set_depth | ||
| 91 | on the verification parameter object contained in the | ||
| 92 | .Fa store . | ||
| 93 | .Pp | ||
| 94 | .Fn X509_STORE_add_cert | ||
| 95 | and | ||
| 96 | .Fn X509_STORE_add_crl | ||
| 97 | add the certificate | ||
| 98 | .Fa x | ||
| 99 | or the certificate revocation list | ||
| 100 | .Fa crl | ||
| 101 | to the | ||
| 102 | .Fa store , | ||
| 103 | increasing its reference count by 1 in case of success. | ||
| 70 | .Sh RETURN VALUES | 104 | .Sh RETURN VALUES |
| 71 | .Fn X509_STORE_set1_param | 105 | .Fn X509_STORE_set1_param , |
| 72 | returns 1 for success and 0 for failure. | 106 | .Fn X509_STORE_set_purpose , |
| 107 | and | ||
| 108 | .Fn X509_STORE_set_trust | ||
| 109 | return 1 for success or 0 for failure. | ||
| 110 | .Pp | ||
| 111 | .Fn X509_STORE_set_flags | ||
| 112 | and | ||
| 113 | .Fn X509_STORE_set_depth | ||
| 114 | always return 1, indicating success. | ||
| 115 | .Pp | ||
| 116 | .Fn X509_STORE_add_cert | ||
| 117 | and | ||
| 118 | .Fn X509_STORE_add_crl | ||
| 119 | return 1 for success or 0 for failure. | ||
| 120 | For example, they fail if | ||
| 121 | .Fa x | ||
| 122 | or | ||
| 123 | .Fa crl | ||
| 124 | is a | ||
| 125 | .Dv NULL | ||
| 126 | pointer, if a certificate with the same subject name as | ||
| 127 | .Fa x | ||
| 128 | or a revocation list with the same issuer name as | ||
| 129 | .Fa crl | ||
| 130 | are already contained in the | ||
| 131 | .Fa store , | ||
| 132 | or if memory allocation fails. | ||
| 133 | .Pp | ||
| 134 | .Fn X509_STORE_get0_objects | ||
| 135 | returns an internal pointer to the stack of certificates, revocation lists, | ||
| 136 | and private keys contained in the | ||
| 137 | .Fa store . | ||
| 138 | The returned pointer must not be freed by the calling application. | ||
| 73 | .Sh SEE ALSO | 139 | .Sh SEE ALSO |
| 140 | .Xr SSL_set1_param 3 , | ||
| 141 | .Xr X509_OBJECT_get0_X509 3 , | ||
| 142 | .Xr X509_STORE_CTX_set0_param 3 , | ||
| 74 | .Xr X509_STORE_load_locations 3 , | 143 | .Xr X509_STORE_load_locations 3 , |
| 75 | .Xr X509_STORE_new 3 | 144 | .Xr X509_STORE_new 3 , |
| 145 | .Xr X509_VERIFY_PARAM_set_flags 3 | ||
| 146 | .Sh HISTORY | ||
| 147 | .Fn X509_STORE_get0_objects | ||
| 148 | first appeared in OpenSSL 1.1.0. | ||
diff --git a/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3 b/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3 index 184a44cc49..9a9194fd0f 100644 --- a/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3 +++ b/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: X509_VERIFY_PARAM_set_flags.3,v 1.8 2018/02/17 19:14:16 schwarze Exp $ | 1 | .\" $OpenBSD: X509_VERIFY_PARAM_set_flags.3,v 1.9 2018/02/25 22:24:18 schwarze Exp $ |
| 2 | .\" full merge up to: OpenSSL d33def66 Feb 9 14:17:13 2016 -0500 | 2 | .\" full merge up to: OpenSSL d33def66 Feb 9 14:17:13 2016 -0500 |
| 3 | .\" selective merge up to: OpenSSL 48e5119a Jan 19 10:49:22 2018 +0100 | 3 | .\" selective merge up to: OpenSSL 48e5119a Jan 19 10:49:22 2018 +0100 |
| 4 | .\" | 4 | .\" |
| @@ -68,7 +68,7 @@ | |||
| 68 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 68 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 69 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 69 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 70 | .\" | 70 | .\" |
| 71 | .Dd $Mdocdate: February 17 2018 $ | 71 | .Dd $Mdocdate: February 25 2018 $ |
| 72 | .Dt X509_VERIFY_PARAM_SET_FLAGS 3 | 72 | .Dt X509_VERIFY_PARAM_SET_FLAGS 3 |
| 73 | .Os | 73 | .Os |
| 74 | .Sh NAME | 74 | .Sh NAME |
| @@ -654,7 +654,10 @@ SSL_CTX_set1_param(ctx, param); | |||
| 654 | X509_VERIFY_PARAM_free(param); | 654 | X509_VERIFY_PARAM_free(param); |
| 655 | .Ed | 655 | .Ed |
| 656 | .Sh SEE ALSO | 656 | .Sh SEE ALSO |
| 657 | .Xr SSL_set1_param 3 , | ||
| 657 | .Xr X509_check_host 3 , | 658 | .Xr X509_check_host 3 , |
| 659 | .Xr X509_STORE_CTX_set0_param 3 , | ||
| 660 | .Xr X509_STORE_set1_param 3 , | ||
| 658 | .Xr X509_verify_cert 3 | 661 | .Xr X509_verify_cert 3 |
| 659 | .Sh BUGS | 662 | .Sh BUGS |
| 660 | Delta CRL checking is currently primitive. | 663 | Delta CRL checking is currently primitive. |
