diff options
author | schwarze <> | 2016-12-12 17:46:23 +0000 |
---|---|---|
committer | schwarze <> | 2016-12-12 17:46:23 +0000 |
commit | 064fee43db3ba4e7e7f0c0f473474749e1383687 (patch) | |
tree | 0588643df3d106e1d99068c2c83805302f338f0e /src/lib | |
parent | c9ea52978f2d81736de6690fe108cdcecf14d3e5 (diff) | |
download | openbsd-064fee43db3ba4e7e7f0c0f473474749e1383687.tar.gz openbsd-064fee43db3ba4e7e7f0c0f473474749e1383687.tar.bz2 openbsd-064fee43db3ba4e7e7f0c0f473474749e1383687.zip |
Document OCSP_SIGNATURE_new(3), OCSP_SIGNATURE_free(3),
OCSP_REQINFO_new(3), OCSP_REQINFO_free(3), OCSP_ONEREQ_new(3),
OCSP_ONEREQ_free(3), all in <openssl/ocsp.h> and in OpenSSL
doc/man3/X509_dup.pod. Note that the OpenSSL documentation
specifies the wrong header file.
Add some information about what these objects actually represent,
along with the pertinent STANDARDS reference.
Minor wording tweaks.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/OCSP_REQUEST_new.3 | 121 |
1 files changed, 95 insertions, 26 deletions
diff --git a/src/lib/libcrypto/man/OCSP_REQUEST_new.3 b/src/lib/libcrypto/man/OCSP_REQUEST_new.3 index 33b7440633..deac9104d9 100644 --- a/src/lib/libcrypto/man/OCSP_REQUEST_new.3 +++ b/src/lib/libcrypto/man/OCSP_REQUEST_new.3 | |||
@@ -1,7 +1,24 @@ | |||
1 | .\" $OpenBSD: OCSP_REQUEST_new.3,v 1.3 2016/12/06 14:54:55 schwarze Exp $ | 1 | .\" $OpenBSD: OCSP_REQUEST_new.3,v 1.4 2016/12/12 17:46:23 schwarze Exp $ |
2 | .\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 | 2 | .\" 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) 2016 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,12 +65,18 @@ | |||
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: December 6 2016 $ | 68 | .Dd $Mdocdate: December 12 2016 $ |
52 | .Dt OCSP_REQUEST_NEW 3 | 69 | .Dt OCSP_REQUEST_NEW 3 |
53 | .Os | 70 | .Os |
54 | .Sh NAME | 71 | .Sh NAME |
55 | .Nm OCSP_REQUEST_new , | 72 | .Nm OCSP_REQUEST_new , |
56 | .Nm OCSP_REQUEST_free , | 73 | .Nm OCSP_REQUEST_free , |
74 | .Nm OCSP_SIGNATURE_new , | ||
75 | .Nm OCSP_SIGNATURE_free , | ||
76 | .Nm OCSP_REQINFO_new , | ||
77 | .Nm OCSP_REQINFO_free , | ||
78 | .Nm OCSP_ONEREQ_new , | ||
79 | .Nm OCSP_ONEREQ_free , | ||
57 | .Nm OCSP_request_add0_id , | 80 | .Nm OCSP_request_add0_id , |
58 | .Nm OCSP_request_sign , | 81 | .Nm OCSP_request_sign , |
59 | .Nm OCSP_request_add1_cert , | 82 | .Nm OCSP_request_add1_cert , |
@@ -65,9 +88,19 @@ | |||
65 | .Ft OCSP_REQUEST * | 88 | .Ft OCSP_REQUEST * |
66 | .Fn OCSP_REQUEST_new void | 89 | .Fn OCSP_REQUEST_new void |
67 | .Ft void | 90 | .Ft void |
68 | .Fo OCSP_REQUEST_free | 91 | .Fn OCSP_REQUEST_free "OCSP_REQUEST *req" |
69 | .Fa "OCSP_REQUEST *req" | 92 | .Ft OCSP_SIGNATURE * |
70 | .Fc | 93 | .Fn OCSP_SIGNATURE_new void |
94 | .Ft void | ||
95 | .Fn OCSP_SIGNATURE_free "OCSP_SIGNATURE *signature" | ||
96 | .Ft OCSP_REQINFO * | ||
97 | .Fn OCSP_REQINFO_new void | ||
98 | .Ft void | ||
99 | .Fn OCSP_REQINFO_free "OCSP_REQINFO *reqinfo" | ||
100 | .Ft OCSP_ONEREQ * | ||
101 | .Fn OCSP_ONEREQ_new void | ||
102 | .Ft void | ||
103 | .Fn OCSP_ONEREQ_free "OCSP_ONEREQ *onereq" | ||
71 | .Ft OCSP_ONEREQ * | 104 | .Ft OCSP_ONEREQ * |
72 | .Fo OCSP_request_add0_id | 105 | .Fo OCSP_request_add0_id |
73 | .Fa "OCSP_REQUEST *req" | 106 | .Fa "OCSP_REQUEST *req" |
@@ -98,14 +131,45 @@ | |||
98 | .Fc | 131 | .Fc |
99 | .Sh DESCRIPTION | 132 | .Sh DESCRIPTION |
100 | .Fn OCSP_REQUEST_new | 133 | .Fn OCSP_REQUEST_new |
101 | allocates and returns an empty | 134 | allocates and initializes an empty |
102 | .Vt OCSP_REQUEST | 135 | .Vt OCSP_REQUEST |
103 | structure. | 136 | object, representing an ASN.1 OCSPRequest structure defined in RFC 6960. |
104 | .Pp | ||
105 | .Fn OCSP_REQUEST_free | 137 | .Fn OCSP_REQUEST_free |
106 | frees up the request structure | 138 | frees |
107 | .Fa req . | 139 | .Fa req . |
108 | .Pp | 140 | .Pp |
141 | .Fn OCSP_SIGNATURE_new | ||
142 | allocates and initializes an empty | ||
143 | .Vt OCSP_SIGNATURE | ||
144 | object, representing an ASN.1 Signature structure defined in RFC 6960. | ||
145 | Such an object is used inside | ||
146 | .Vt OCSP_REQUEST . | ||
147 | .Fn OCSP_SIGNATURE_free | ||
148 | frees | ||
149 | .Fa signature . | ||
150 | .Pp | ||
151 | .Fn OCSP_REQINFO_new | ||
152 | allocates and initializes an empty | ||
153 | .Vt OCSP_REQINFO | ||
154 | object, representing an ASN.1 TBSRequest structure defined in RFC 6960. | ||
155 | Such an object is used inside | ||
156 | .Vt OCSP_REQUEST . | ||
157 | It asks about the validity of one or more certificates. | ||
158 | .Fn OCSP_REQINFO_free | ||
159 | frees | ||
160 | .Fa reqinfo . | ||
161 | .Pp | ||
162 | .Fn OCSP_ONEREQ_new | ||
163 | allocates and initializes an empty | ||
164 | .Vt OCSP_ONEREQ | ||
165 | object, representing an ASN.1 Request structure defined in RFC 6960. | ||
166 | Such objects are used inside | ||
167 | .Vt OCSP_REQINFO . | ||
168 | Each one asks about the validity of one certificiate. | ||
169 | .Fn OCSP_ONEREQ_free | ||
170 | frees | ||
171 | .Fa onereq . | ||
172 | .Pp | ||
109 | .Fn OCSP_request_add0_id | 173 | .Fn OCSP_request_add0_id |
110 | adds certificate ID | 174 | adds certificate ID |
111 | .Fa cid | 175 | .Fa cid |
@@ -113,7 +177,7 @@ to | |||
113 | .Fa req . | 177 | .Fa req . |
114 | It returns the | 178 | It returns the |
115 | .Vt OCSP_ONEREQ | 179 | .Vt OCSP_ONEREQ |
116 | structure added so an application can add additional extensions to the | 180 | object added so an application can add additional extensions to the |
117 | request. | 181 | request. |
118 | The | 182 | The |
119 | .Fa cid | 183 | .Fa cid |
@@ -148,7 +212,7 @@ after use. | |||
148 | .Fn OCSP_request_onereq_count | 212 | .Fn OCSP_request_onereq_count |
149 | returns the total number of | 213 | returns the total number of |
150 | .Vt OCSP_ONEREQ | 214 | .Vt OCSP_ONEREQ |
151 | structures in | 215 | objects in |
152 | .Fa req . | 216 | .Fa req . |
153 | .Pp | 217 | .Pp |
154 | .Fn OCSP_request_onereq_get0 | 218 | .Fn OCSP_request_onereq_get0 |
@@ -163,28 +227,30 @@ The index value | |||
163 | runs from 0 to | 227 | runs from 0 to |
164 | .Fn OCSP_request_onereq_count req No - 1 . | 228 | .Fn OCSP_request_onereq_count req No - 1 . |
165 | .Pp | 229 | .Pp |
166 | An | ||
167 | .Vt OCSP_REQUEST | ||
168 | structure contains one or more | ||
169 | .Vt OCSP_ONEREQ | ||
170 | structures corresponding to each certificate. | ||
171 | .Pp | ||
172 | .Fn OCSP_request_onereq_count | 230 | .Fn OCSP_request_onereq_count |
173 | and | 231 | and |
174 | .Fn OCSP_request_onereq_get0 | 232 | .Fn OCSP_request_onereq_get0 |
175 | are mainly used by OCSP responders. | 233 | are mainly used by OCSP responders. |
176 | .Sh RETURN VALUES | 234 | .Sh RETURN VALUES |
177 | .Fn OCSP_REQUEST_new | 235 | .Fn OCSP_REQUEST_new , |
178 | returns an empty | 236 | .Fn OCSP_SIGNATURE_new , |
179 | .Vt OCSP_REQUEST | 237 | .Fn OCSP_REQINFO_new , |
180 | structure or | 238 | and |
239 | .Fn OCSP_ONEREQ_new | ||
240 | return an empty | ||
241 | .Vt OCSP_REQUEST , | ||
242 | .Vt OCSP_SIGNATURE , | ||
243 | .Vt OCSP_REQINFO , | ||
244 | or | ||
245 | .Vt OCSP_ONEREQ | ||
246 | object, respectively, or | ||
181 | .Dv NULL | 247 | .Dv NULL |
182 | if an error occurred. | 248 | if an error occurred. |
183 | .Pp | 249 | .Pp |
184 | .Fn OCSP_request_add0_id | 250 | .Fn OCSP_request_add0_id |
185 | returns the | 251 | returns the |
186 | .Vt OCSP_ONEREQ | 252 | .Vt OCSP_ONEREQ |
187 | structure containing | 253 | object containing |
188 | .Fa cid | 254 | .Fa cid |
189 | or | 255 | or |
190 | .Dv NULL | 256 | .Dv NULL |
@@ -198,19 +264,19 @@ return 1 for success or 0 for failure. | |||
198 | .Fn OCSP_request_onereq_count | 264 | .Fn OCSP_request_onereq_count |
199 | returns the total number of | 265 | returns the total number of |
200 | .Vt OCSP_ONEREQ | 266 | .Vt OCSP_ONEREQ |
201 | structures in | 267 | objects in |
202 | .Fa req . | 268 | .Fa req . |
203 | .Pp | 269 | .Pp |
204 | .Fn OCSP_request_onereq_get0 | 270 | .Fn OCSP_request_onereq_get0 |
205 | returns a pointer to an | 271 | returns a pointer to an |
206 | .Vt OCSP_ONEREQ | 272 | .Vt OCSP_ONEREQ |
207 | structure or | 273 | object or |
208 | .Dv NULL | 274 | .Dv NULL |
209 | if the index value is out of range. | 275 | if the index value is out of range. |
210 | .Sh EXAMPLES | 276 | .Sh EXAMPLES |
211 | Create an | 277 | Create an |
212 | .Vt OCSP_REQUEST | 278 | .Vt OCSP_REQUEST |
213 | structure for certificate | 279 | object for certificate |
214 | .Fa cert | 280 | .Fa cert |
215 | with issuer | 281 | with issuer |
216 | .Fa issuer : | 282 | .Fa issuer : |
@@ -238,3 +304,6 @@ OCSP_REQUEST_free(req); | |||
238 | .Xr OCSP_resp_find_status 3 , | 304 | .Xr OCSP_resp_find_status 3 , |
239 | .Xr OCSP_response_status 3 , | 305 | .Xr OCSP_response_status 3 , |
240 | .Xr OCSP_sendreq_new 3 | 306 | .Xr OCSP_sendreq_new 3 |
307 | .Sh STANDARDS | ||
308 | RFC 6960: X.509 Internet Public Key Infrastructure Online Certificate | ||
309 | Status Protocol, section 4.1: Request Syntax | ||