diff options
| author | schwarze <> | 2022-11-16 14:55:40 +0000 |
|---|---|---|
| committer | schwarze <> | 2022-11-16 14:55:40 +0000 |
| commit | 0d54bb992b96d960d4a1d5084516b24436a78eed (patch) | |
| tree | 85733a278c145b75de945ed01565a73e9d9f7a74 /src/lib/libcrypto/man | |
| parent | 6117bfc36a851f83d6a982380c89fa878c16889e (diff) | |
| download | openbsd-0d54bb992b96d960d4a1d5084516b24436a78eed.tar.gz openbsd-0d54bb992b96d960d4a1d5084516b24436a78eed.tar.bz2 openbsd-0d54bb992b96d960d4a1d5084516b24436a78eed.zip | |
expose the documentation of X509_STORE_CTX_verify_fn(3)
and X509_STORE_set_verify(3) and document X509_STORE_get_verify(3)
which tb@ all provided with x509_vfy.h revisions 1.48 and 1.49
Diffstat (limited to 'src/lib/libcrypto/man')
| -rw-r--r-- | src/lib/libcrypto/man/X509_STORE_CTX_new.3 | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/X509_STORE_CTX_set_verify.3 | 62 |
2 files changed, 26 insertions, 42 deletions
diff --git a/src/lib/libcrypto/man/X509_STORE_CTX_new.3 b/src/lib/libcrypto/man/X509_STORE_CTX_new.3 index a10742ff05..96af7a8afb 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.26 2021/11/17 16:08:32 schwarze Exp $ | 1 | .\" $OpenBSD: X509_STORE_CTX_new.3,v 1.27 2022/11/16 14:55:40 schwarze Exp $ |
| 2 | .\" full merge up to: OpenSSL aae41f8c Jun 25 09:47:15 2015 +0100 | 2 | .\" full merge up to: OpenSSL aae41f8c Jun 25 09:47:15 2015 +0100 |
| 3 | .\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 | 3 | .\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 |
| 4 | .\" | 4 | .\" |
| @@ -67,7 +67,7 @@ | |||
| 67 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 67 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 68 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 68 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 69 | .\" | 69 | .\" |
| 70 | .Dd $Mdocdate: November 17 2021 $ | 70 | .Dd $Mdocdate: November 16 2022 $ |
| 71 | .Dt X509_STORE_CTX_NEW 3 | 71 | .Dt X509_STORE_CTX_NEW 3 |
| 72 | .Os | 72 | .Os |
| 73 | .Sh NAME | 73 | .Sh NAME |
| @@ -85,6 +85,8 @@ | |||
| 85 | .Nm X509_STORE_CTX_set0_untrusted , | 85 | .Nm X509_STORE_CTX_set0_untrusted , |
| 86 | .Nm X509_STORE_CTX_get0_untrusted , | 86 | .Nm X509_STORE_CTX_get0_untrusted , |
| 87 | .Nm X509_STORE_CTX_set0_crls | 87 | .Nm X509_STORE_CTX_set0_crls |
| 88 | .\" X509_STORE_CTX_verify_fn moved to X509_STORE_CTX_set_verify(3) | ||
| 89 | .\" X509_STORE_CTX_set_verify moved to X509_STORE_CTX_set_verify(3) | ||
| 88 | .Nd X509_STORE_CTX initialisation | 90 | .Nd X509_STORE_CTX initialisation |
| 89 | .Sh SYNOPSIS | 91 | .Sh SYNOPSIS |
| 90 | .In openssl/x509_vfy.h | 92 | .In openssl/x509_vfy.h |
diff --git a/src/lib/libcrypto/man/X509_STORE_CTX_set_verify.3 b/src/lib/libcrypto/man/X509_STORE_CTX_set_verify.3 index ccce6a0eb1..1c7797bbfc 100644 --- a/src/lib/libcrypto/man/X509_STORE_CTX_set_verify.3 +++ b/src/lib/libcrypto/man/X509_STORE_CTX_set_verify.3 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | .\" $OpenBSD: X509_STORE_CTX_set_verify.3,v 1.2 2021/11/23 17:06:05 tb Exp $ | 1 | .\" $OpenBSD: X509_STORE_CTX_set_verify.3,v 1.3 2022/11/16 14:55:40 schwarze Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2021, 2022 Ingo Schwarze <schwarze@openbsd.org> |
| 4 | .\" | 4 | .\" |
| 5 | .\" Permission to use, copy, modify, and distribute this software for any | 5 | .\" Permission to use, copy, modify, and distribute this software for any |
| 6 | .\" purpose with or without fee is hereby granted, provided that the above | 6 | .\" purpose with or without fee is hereby granted, provided that the above |
| @@ -14,53 +14,32 @@ | |||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 16 | .\" | 16 | .\" |
| 17 | .Dd $Mdocdate: November 23 2021 $ | 17 | .Dd $Mdocdate: November 16 2022 $ |
| 18 | .Dt X509_STORE_CTX_SET_VERIFY 3 | 18 | .Dt X509_STORE_CTX_SET_VERIFY 3 |
| 19 | .Os | 19 | .Os |
| 20 | .\" ds LIBRESSL_NEXT_API | ||
| 21 | .Sh NAME | 20 | .Sh NAME |
| 22 | .if dLIBRESSL_NEXT_API \{\ | ||
| 23 | .Nm X509_STORE_CTX_verify_fn , | 21 | .Nm X509_STORE_CTX_verify_fn , |
| 24 | .\} | ||
| 25 | .Nm X509_STORE_CTX_set_verify , | 22 | .Nm X509_STORE_CTX_set_verify , |
| 26 | .ie dLIBRESSL_NEXT_API \{\ | ||
| 27 | .Nm X509_STORE_CTX_get_verify , | 23 | .Nm X509_STORE_CTX_get_verify , |
| 28 | .Nm X509_STORE_set_verify , | 24 | .Nm X509_STORE_set_verify , |
| 29 | .Nm X509_STORE_set_verify_func | 25 | .Nm X509_STORE_set_verify_func , |
| 30 | .\} | 26 | .Nm X509_STORE_get_verify |
| 31 | .el \{\ | ||
| 32 | .Nm X509_STORE_CTX_get_verify | ||
| 33 | .\} | ||
| 34 | .Nd user-defined certificate chain verification function | 27 | .Nd user-defined certificate chain verification function |
| 35 | .Sh SYNOPSIS | 28 | .Sh SYNOPSIS |
| 36 | .In openssl/x509_vfy.h | 29 | .In openssl/x509_vfy.h |
| 37 | .if dLIBRESSL_NEXT_API \{\ | ||
| 38 | .Ft typedef int | 30 | .Ft typedef int |
| 39 | .Fo "(*X509_STORE_CTX_verify_fn)" | 31 | .Fo "(*X509_STORE_CTX_verify_fn)" |
| 40 | .Fa "X509_STORE_CTX *ctx" | 32 | .Fa "X509_STORE_CTX *ctx" |
| 41 | .Fc | 33 | .Fc |
| 42 | .\} | ||
| 43 | .Ft void | 34 | .Ft void |
| 44 | .Fo X509_STORE_CTX_set_verify | 35 | .Fo X509_STORE_CTX_set_verify |
| 45 | .Fa "X509_STORE_CTX *ctx" | 36 | .Fa "X509_STORE_CTX *ctx" |
| 46 | .ie dLIBRESSL_NEXT_API \{\ | ||
| 47 | .Fa "X509_STORE_CTX_verify_fn verify" | 37 | .Fa "X509_STORE_CTX_verify_fn verify" |
| 48 | .\} | ||
| 49 | .el \{\ | ||
| 50 | .Fa "int (*verify)(X509_STORE_CTX *)" | ||
| 51 | .\} | ||
| 52 | .Fc | 38 | .Fc |
| 53 | .ie dLIBRESSL_NEXT_API \{\ | ||
| 54 | .Ft X509_STORE_CTX_verify_fn | 39 | .Ft X509_STORE_CTX_verify_fn |
| 55 | .Fo X509_STORE_CTX_get_verify | 40 | .Fo X509_STORE_CTX_get_verify |
| 56 | .\} | ||
| 57 | .el \{\ | ||
| 58 | .Ft int | ||
| 59 | .Fo "(*X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx))" | ||
| 60 | .\} | ||
| 61 | .Fa "X509_STORE_CTX *ctx" | 41 | .Fa "X509_STORE_CTX *ctx" |
| 62 | .Fc | 42 | .Fc |
| 63 | .if dLIBRESSL_NEXT_API \{\ | ||
| 64 | .Ft void | 43 | .Ft void |
| 65 | .Fo X509_STORE_set_verify | 44 | .Fo X509_STORE_set_verify |
| 66 | .Fa "X509_STORE *store" | 45 | .Fa "X509_STORE *store" |
| @@ -71,7 +50,10 @@ | |||
| 71 | .Fa "X509_STORE *store" | 50 | .Fa "X509_STORE *store" |
| 72 | .Fa "X509_STORE_CTX_verify_fn verify" | 51 | .Fa "X509_STORE_CTX_verify_fn verify" |
| 73 | .Fc | 52 | .Fc |
| 74 | .\} | 53 | .Ft X509_STORE_CTX_verify_fn |
| 54 | .Fo X509_STORE_get_verify | ||
| 55 | .Fa "X509_STORE_CTX *ctx" | ||
| 56 | .Fc | ||
| 75 | .Sh DESCRIPTION | 57 | .Sh DESCRIPTION |
| 76 | .Fn X509_STORE_CTX_set_verify | 58 | .Fn X509_STORE_CTX_set_verify |
| 77 | configures | 59 | configures |
| @@ -97,7 +79,6 @@ or | |||
| 97 | .Xr X509_VERIFY_PARAM_set_flags 3 . | 79 | .Xr X509_VERIFY_PARAM_set_flags 3 . |
| 98 | Otherwise, it is ignored and a different algorithm is used that does | 80 | Otherwise, it is ignored and a different algorithm is used that does |
| 99 | not support replacing the verification function. | 81 | not support replacing the verification function. |
| 100 | .if dLIBRESSL_NEXT_API \{\ | ||
| 101 | .Pp | 82 | .Pp |
| 102 | .Fn X509_STORE_set_verify | 83 | .Fn X509_STORE_set_verify |
| 103 | saves the function pointer | 84 | saves the function pointer |
| @@ -116,16 +97,13 @@ is later passed as an argument to | |||
| 116 | is an alias for | 97 | is an alias for |
| 117 | .Fn X509_STORE_set_verify | 98 | .Fn X509_STORE_set_verify |
| 118 | implemented as a macro. | 99 | implemented as a macro. |
| 119 | .\} | ||
| 120 | .Sh RETURN VALUES | 100 | .Sh RETURN VALUES |
| 121 | .if dLIBRESSL_NEXT_API \{\ | ||
| 122 | .Fn X509_STORE_CTX_verify_fn | 101 | .Fn X509_STORE_CTX_verify_fn |
| 123 | is supposed to return 1 to indicate that the chain is valid | 102 | is supposed to return 1 to indicate that the chain is valid |
| 124 | or 0 if it is not or if an error occurred. | 103 | or 0 if it is not or if an error occurred. |
| 125 | .Pp | 104 | .Pp |
| 126 | .\} | ||
| 127 | .Fn X509_STORE_CTX_get_verify | 105 | .Fn X509_STORE_CTX_get_verify |
| 128 | returns a function pointer to the function previously set with | 106 | returns a function pointer previously set with |
| 129 | .Fn X509_STORE_CTX_set_verify | 107 | .Fn X509_STORE_CTX_set_verify |
| 130 | or | 108 | or |
| 131 | .Xr X509_STORE_CTX_init 3 , | 109 | .Xr X509_STORE_CTX_init 3 , |
| @@ -134,6 +112,14 @@ or | |||
| 134 | if | 112 | if |
| 135 | .Fa ctx | 113 | .Fa ctx |
| 136 | is uninitialized. | 114 | is uninitialized. |
| 115 | .Pp | ||
| 116 | .Fn X509_STORE_get_verify | ||
| 117 | returns the function pointer previously set with | ||
| 118 | .Fn X509_STORE_set_verify , | ||
| 119 | or | ||
| 120 | .Dv NULL | ||
| 121 | if that function was not called on the | ||
| 122 | .Fa store . | ||
| 137 | .Sh SEE ALSO | 123 | .Sh SEE ALSO |
| 138 | .Xr X509_STORE_CTX_init 3 , | 124 | .Xr X509_STORE_CTX_init 3 , |
| 139 | .Xr X509_STORE_CTX_set_error 3 , | 125 | .Xr X509_STORE_CTX_set_error 3 , |
| @@ -145,23 +131,19 @@ is uninitialized. | |||
| 145 | .Xr X509_verify_cert 3 , | 131 | .Xr X509_verify_cert 3 , |
| 146 | .Xr X509_VERIFY_PARAM_set_flags 3 | 132 | .Xr X509_VERIFY_PARAM_set_flags 3 |
| 147 | .Sh HISTORY | 133 | .Sh HISTORY |
| 148 | .if dLIBRESSL_NEXT_API \{\ | ||
| 149 | .Fn X509_STORE_set_verify_func | 134 | .Fn X509_STORE_set_verify_func |
| 150 | first appeared in SSLeay 0.8.0 and has been available since | 135 | first appeared in SSLeay 0.8.0 and has been available since |
| 151 | .Ox 2.4 . | 136 | .Ox 2.4 . |
| 152 | .Pp | 137 | .Pp |
| 153 | .\} | ||
| 154 | .Fn X509_STORE_CTX_set_verify | 138 | .Fn X509_STORE_CTX_set_verify |
| 155 | and | 139 | and |
| 156 | .Fn X509_STORE_CTX_get_verify | 140 | .Fn X509_STORE_CTX_get_verify |
| 157 | first appeared in OpenSSL 1.1.0 and have been available since | 141 | first appeared in OpenSSL 1.1.0 and have been available since |
| 158 | .Ox 7.1 . | 142 | .Ox 7.1 . |
| 159 | .if dLIBRESSL_NEXT_API \{\ | ||
| 160 | .Pp | 143 | .Pp |
| 161 | .Fn X509_STORE_CTX_verify_fn | 144 | .Fn X509_STORE_CTX_verify_fn , |
| 145 | .Fn X509_STORE_set_verify , | ||
| 162 | and | 146 | and |
| 163 | .Fn X509_STORE_set_verify | 147 | .Fn X509_STORE_get_verify |
| 164 | first appeared in OpenSSL 1.1.0 and have been available since | 148 | first appeared in OpenSSL 1.1.0 and have been available since |
| 165 | .reminder Check the version number! | 149 | .Ox 7.2 . |
| 166 | .Ox 7.1 . | ||
| 167 | .\} | ||
