diff options
author | schwarze <> | 2019-08-27 10:48:41 +0000 |
---|---|---|
committer | schwarze <> | 2019-08-27 10:48:41 +0000 |
commit | 84aca1c942ade2d6b8dc6b717cb696bcf94b8407 (patch) | |
tree | 84b460d6eac55bc7d3d9988d9890234779de4409 /src | |
parent | 3f8dd6adb0e6d88b2e33335c209c72e06f20de1f (diff) | |
download | openbsd-84aca1c942ade2d6b8dc6b717cb696bcf94b8407.tar.gz openbsd-84aca1c942ade2d6b8dc6b717cb696bcf94b8407.tar.bz2 openbsd-84aca1c942ade2d6b8dc6b717cb696bcf94b8407.zip |
document OCSP_parse_url(3)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/OCSP_sendreq_new.3 | 81 |
1 files changed, 75 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/OCSP_sendreq_new.3 b/src/lib/libcrypto/man/OCSP_sendreq_new.3 index 8392c61190..c8107c4d58 100644 --- a/src/lib/libcrypto/man/OCSP_sendreq_new.3 +++ b/src/lib/libcrypto/man/OCSP_sendreq_new.3 | |||
@@ -1,7 +1,24 @@ | |||
1 | .\" $OpenBSD: OCSP_sendreq_new.3,v 1.8 2019/08/23 12:23:39 schwarze Exp $ | 1 | .\" $OpenBSD: OCSP_sendreq_new.3,v 1.9 2019/08/27 10:48:41 schwarze Exp $ |
2 | .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" full merge up to: OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 |
3 | .\" | 3 | .\" |
4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file is a derived work. |
5 | .\" The changes are covered by the following Copyright and license: | ||
6 | .\" | ||
7 | .\" Copyright (c) 2018, 2019 Ingo Schwarze <schwarze@openbsd.org> | ||
8 | .\" | ||
9 | .\" Permission to use, copy, modify, and distribute this software for any | ||
10 | .\" purpose with or without fee is hereby granted, provided that the above | ||
11 | .\" copyright notice and this permission notice appear in all copies. | ||
12 | .\" | ||
13 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
14 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
15 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
16 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
17 | .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
18 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
19 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
20 | .\" | ||
21 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org>. | ||
5 | .\" Copyright (c) 2014, 2016 The OpenSSL Project. All rights reserved. | 22 | .\" Copyright (c) 2014, 2016 The OpenSSL Project. All rights reserved. |
6 | .\" | 23 | .\" |
7 | .\" Redistribution and use in source and binary forms, with or without | 24 | .\" Redistribution and use in source and binary forms, with or without |
@@ -48,7 +65,7 @@ | |||
48 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 65 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
49 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
50 | .\" | 67 | .\" |
51 | .Dd $Mdocdate: August 23 2019 $ | 68 | .Dd $Mdocdate: August 27 2019 $ |
52 | .Dt OCSP_SENDREQ_NEW 3 | 69 | .Dt OCSP_SENDREQ_NEW 3 |
53 | .Os | 70 | .Os |
54 | .Sh NAME | 71 | .Sh NAME |
@@ -57,6 +74,7 @@ | |||
57 | .Nm OCSP_REQ_CTX_free , | 74 | .Nm OCSP_REQ_CTX_free , |
58 | .Nm OCSP_REQ_CTX_add1_header , | 75 | .Nm OCSP_REQ_CTX_add1_header , |
59 | .Nm OCSP_REQ_CTX_set1_req , | 76 | .Nm OCSP_REQ_CTX_set1_req , |
77 | .Nm OCSP_parse_url , | ||
60 | .Nm OCSP_sendreq_bio | 78 | .Nm OCSP_sendreq_bio |
61 | .Nd OCSP responder query functions | 79 | .Nd OCSP responder query functions |
62 | .Sh SYNOPSIS | 80 | .Sh SYNOPSIS |
@@ -88,6 +106,14 @@ | |||
88 | .Fa "OCSP_REQ_CTX *rctx" | 106 | .Fa "OCSP_REQ_CTX *rctx" |
89 | .Fa "OCSP_REQUEST *req" | 107 | .Fa "OCSP_REQUEST *req" |
90 | .Fc | 108 | .Fc |
109 | .Ft int | ||
110 | .Fo OCSP_parse_url | ||
111 | .Fa "const char *url" | ||
112 | .Fa "char **phost" | ||
113 | .Fa "char **pport" | ||
114 | .Fa "char **ppath" | ||
115 | .Fa "int *pssl" | ||
116 | .Fc | ||
91 | .Ft OCSP_RESPONSE * | 117 | .Ft OCSP_RESPONSE * |
92 | .Fo OCSP_sendreq_bio | 118 | .Fo OCSP_sendreq_bio |
93 | .Fa "BIO *io" | 119 | .Fa "BIO *io" |
@@ -182,6 +208,46 @@ to | |||
182 | This function should be called after any calls to | 208 | This function should be called after any calls to |
183 | .Fn OCSP_REQ_CTX_add1_header . | 209 | .Fn OCSP_REQ_CTX_add1_header . |
184 | .Pp | 210 | .Pp |
211 | .Fn OCSP_parse_url | ||
212 | is a utility function to parse a | ||
213 | .Fa url | ||
214 | of the form | ||
215 | .Sm off | ||
216 | .Sy http Op Sy s | ||
217 | .Pf :// Ar host | ||
218 | .Op : Ar port | ||
219 | .Op / Ar path | ||
220 | .Sm on | ||
221 | and store pointers to newly allocated copies of the strings | ||
222 | .Ar host , | ||
223 | .Ar port , | ||
224 | and | ||
225 | .Ar path | ||
226 | in | ||
227 | .Pf * phost , | ||
228 | .Pf * pport , | ||
229 | and | ||
230 | .Pf * ppath , | ||
231 | respectively. | ||
232 | By default, | ||
233 | .Pf * ppath | ||
234 | is set to | ||
235 | .Qq / | ||
236 | and | ||
237 | .Pf * pport | ||
238 | to | ||
239 | .Qq 443 | ||
240 | for | ||
241 | .Sy https | ||
242 | or | ||
243 | .Qq 80 | ||
244 | for | ||
245 | .Sy http . | ||
246 | For | ||
247 | .Sy https , | ||
248 | .Pf * Fa pssl | ||
249 | is set to 1; otherwise, to 0. | ||
250 | .Pp | ||
185 | .Fn OCSP_sendreq_bio | 251 | .Fn OCSP_sendreq_bio |
186 | performs an OCSP request using the responder | 252 | performs an OCSP request using the responder |
187 | .Fa io , | 253 | .Fa io , |
@@ -206,9 +272,10 @@ returns 1 if the operation was completed successfully, | |||
206 | -1 if the operation should be retried, | 272 | -1 if the operation should be retried, |
207 | or 0 if an error occurred. | 273 | or 0 if an error occurred. |
208 | .Pp | 274 | .Pp |
209 | .Fn OCSP_REQ_CTX_add1_header | 275 | .Fn OCSP_REQ_CTX_add1_header , |
276 | .Fn OCSP_REQ_CTX_set1_req , | ||
210 | and | 277 | and |
211 | .Fn OCSP_REQ_CTX_set1_req | 278 | .Fn OCSP_parse_url |
212 | return 1 for success or 0 for failure. | 279 | return 1 for success or 0 for failure. |
213 | .Pp | 280 | .Pp |
214 | .Fn OCSP_sendreq_bio | 281 | .Fn OCSP_sendreq_bio |
@@ -230,8 +297,10 @@ Add a Host header for | |||
230 | .Xr OCSP_response_status 3 , | 297 | .Xr OCSP_response_status 3 , |
231 | .Xr X509_get1_ocsp 3 | 298 | .Xr X509_get1_ocsp 3 |
232 | .Sh HISTORY | 299 | .Sh HISTORY |
300 | .Fn OCSP_parse_url | ||
301 | and | ||
233 | .Fn OCSP_sendreq_bio | 302 | .Fn OCSP_sendreq_bio |
234 | first appeared in OpenSSL 0.9.7 and has been available since | 303 | first appeared in OpenSSL 0.9.7 and have been available since |
235 | .Ox 3.2 . | 304 | .Ox 3.2 . |
236 | .Pp | 305 | .Pp |
237 | .Fn OCSP_sendreq_new , | 306 | .Fn OCSP_sendreq_new , |