diff options
author | schwarze <> | 2018-02-15 15:36:04 +0000 |
---|---|---|
committer | schwarze <> | 2018-02-15 15:36:04 +0000 |
commit | 9939b7782c6ac19252ee0d49847762ddb4ce1be1 (patch) | |
tree | cceb995eab9b10f5f5a407ac719888e7c0e3998b /src | |
parent | df436818a8ed43be4291cf07528f32725025ed16 (diff) | |
download | openbsd-9939b7782c6ac19252ee0d49847762ddb4ce1be1.tar.gz openbsd-9939b7782c6ac19252ee0d49847762ddb4ce1be1.tar.bz2 openbsd-9939b7782c6ac19252ee0d49847762ddb4ce1be1.zip |
Document the additional public function OCSP_basic_sign(3);
from David Cooper <david.cooper@nist.gov>
via OpenSSL commit cace14b8 Jan 24 11:47:23 2018 -0500.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/man/OCSP_response_status.3 | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/OCSP_response_status.3 b/src/lib/libcrypto/man/OCSP_response_status.3 index 1ffa8a728e..e0b294d8f6 100644 --- a/src/lib/libcrypto/man/OCSP_response_status.3 +++ b/src/lib/libcrypto/man/OCSP_response_status.3 | |||
@@ -1,5 +1,6 @@ | |||
1 | .\" $OpenBSD: OCSP_response_status.3,v 1.4 2016/12/25 22:15:10 schwarze Exp $ | 1 | .\" $OpenBSD: OCSP_response_status.3,v 1.5 2018/02/15 15:36:04 schwarze Exp $ |
2 | .\" OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 | 2 | .\" full merge up to: OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 |
3 | .\" selective merge up to: OpenSSL e23ac625 Jan 24 12:27:19 2018 -0500 | ||
3 | .\" | 4 | .\" |
4 | .\" This file is a derived work. | 5 | .\" This file is a derived work. |
5 | .\" The changes are covered by the following Copyright and license: | 6 | .\" The changes are covered by the following Copyright and license: |
@@ -19,7 +20,7 @@ | |||
19 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 20 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
20 | .\" | 21 | .\" |
21 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org>. | 22 | .\" The original file was written by Dr. Stephen Henson <steve@openssl.org>. |
22 | .\" Copyright (c) 2014, 2016 The OpenSSL Project. All rights reserved. | 23 | .\" Copyright (c) 2014, 2016, 2018 The OpenSSL Project. All rights reserved. |
23 | .\" | 24 | .\" |
24 | .\" Redistribution and use in source and binary forms, with or without | 25 | .\" Redistribution and use in source and binary forms, with or without |
25 | .\" modification, are permitted provided that the following conditions | 26 | .\" modification, are permitted provided that the following conditions |
@@ -65,7 +66,7 @@ | |||
65 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 66 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
66 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 67 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
67 | .\" | 68 | .\" |
68 | .Dd $Mdocdate: December 25 2016 $ | 69 | .Dd $Mdocdate: February 15 2018 $ |
69 | .Dt OCSP_RESPONSE_STATUS 3 | 70 | .Dt OCSP_RESPONSE_STATUS 3 |
70 | .Os | 71 | .Os |
71 | .Sh NAME | 72 | .Sh NAME |
@@ -81,7 +82,8 @@ | |||
81 | .Nm OCSP_RESPID_free , | 82 | .Nm OCSP_RESPID_free , |
82 | .Nm OCSP_response_create , | 83 | .Nm OCSP_response_create , |
83 | .Nm OCSP_response_status , | 84 | .Nm OCSP_response_status , |
84 | .Nm OCSP_response_get1_basic | 85 | .Nm OCSP_response_get1_basic , |
86 | .Nm OCSP_basic_sign | ||
85 | .Nd OCSP response functions | 87 | .Nd OCSP response functions |
86 | .Sh SYNOPSIS | 88 | .Sh SYNOPSIS |
87 | .In openssl/ocsp.h | 89 | .In openssl/ocsp.h |
@@ -118,6 +120,15 @@ | |||
118 | .Fo OCSP_response_get1_basic | 120 | .Fo OCSP_response_get1_basic |
119 | .Fa "OCSP_RESPONSE *resp" | 121 | .Fa "OCSP_RESPONSE *resp" |
120 | .Fc | 122 | .Fc |
123 | .Ft int | ||
124 | .Fo OCSP_basic_sign | ||
125 | .Fa "OCSP_BASICRESP *bs" | ||
126 | .Fa "X509 *signer" | ||
127 | .Fa "EVP_PKEY *key" | ||
128 | .Fa "const EVP_MD *dgst" | ||
129 | .Fa "STACK_OF(X509) *certs" | ||
130 | .Fa "unsigned long flags" | ||
131 | .Fc | ||
121 | .Sh DESCRIPTION | 132 | .Sh DESCRIPTION |
122 | .Fn OCSP_RESPONSE_new | 133 | .Fn OCSP_RESPONSE_new |
123 | allocates and initializes an empty | 134 | allocates and initializes an empty |
@@ -206,6 +217,29 @@ object contained in | |||
206 | .Fa resp . | 217 | .Fa resp . |
207 | It is only called if the status of a response is | 218 | It is only called if the status of a response is |
208 | .Dv OCSP_RESPONSE_STATUS_SUCCESSFUL . | 219 | .Dv OCSP_RESPONSE_STATUS_SUCCESSFUL . |
220 | .Pp | ||
221 | .Fn OCSP_basic_sign | ||
222 | signs the OCSP response | ||
223 | .Fa bs | ||
224 | using the certificate | ||
225 | .Fa signer , | ||
226 | the private key | ||
227 | .Fa key , | ||
228 | the digest | ||
229 | .Fa dgst , | ||
230 | and the additional certificates | ||
231 | .Fa certs . | ||
232 | If the | ||
233 | .Fa flags | ||
234 | option | ||
235 | .Dv OCSP_NOCERTS | ||
236 | is set, then no certificates will be included in the request. | ||
237 | If the | ||
238 | .Fa flags | ||
239 | option | ||
240 | .Dv OCSP_RESPID_KEY | ||
241 | is set, then the responder is identified by key ID | ||
242 | rather than by name. | ||
209 | .Sh RETURN VALUES | 243 | .Sh RETURN VALUES |
210 | .Fn OCSP_RESPONSE_new | 244 | .Fn OCSP_RESPONSE_new |
211 | and | 245 | and |
@@ -240,6 +274,9 @@ if an error occurred. | |||
240 | .Pp | 274 | .Pp |
241 | .Fn OCSP_response_status | 275 | .Fn OCSP_response_status |
242 | returns a status value. | 276 | returns a status value. |
277 | .Pp | ||
278 | .Fn OCSP_basic_sign | ||
279 | return 1 on success or 0 on failure. | ||
243 | .Sh SEE ALSO | 280 | .Sh SEE ALSO |
244 | .Xr OCSP_cert_to_id 3 , | 281 | .Xr OCSP_cert_to_id 3 , |
245 | .Xr OCSP_request_add1_nonce 3 , | 282 | .Xr OCSP_request_add1_nonce 3 , |