summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorschwarze <>2018-02-15 15:36:04 +0000
committerschwarze <>2018-02-15 15:36:04 +0000
commit9939b7782c6ac19252ee0d49847762ddb4ce1be1 (patch)
treecceb995eab9b10f5f5a407ac719888e7c0e3998b /src/lib
parentdf436818a8ed43be4291cf07528f32725025ed16 (diff)
downloadopenbsd-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/lib')
-rw-r--r--src/lib/libcrypto/man/OCSP_response_status.347
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
123allocates and initializes an empty 134allocates and initializes an empty
@@ -206,6 +217,29 @@ object contained in
206.Fa resp . 217.Fa resp .
207It is only called if the status of a response is 218It 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
222signs the OCSP response
223.Fa bs
224using the certificate
225.Fa signer ,
226the private key
227.Fa key ,
228the digest
229.Fa dgst ,
230and the additional certificates
231.Fa certs .
232If the
233.Fa flags
234option
235.Dv OCSP_NOCERTS
236is set, then no certificates will be included in the request.
237If the
238.Fa flags
239option
240.Dv OCSP_RESPID_KEY
241is set, then the responder is identified by key ID
242rather than by name.
209.Sh RETURN VALUES 243.Sh RETURN VALUES
210.Fn OCSP_RESPONSE_new 244.Fn OCSP_RESPONSE_new
211and 245and
@@ -240,6 +274,9 @@ if an error occurred.
240.Pp 274.Pp
241.Fn OCSP_response_status 275.Fn OCSP_response_status
242returns a status value. 276returns a status value.
277.Pp
278.Fn OCSP_basic_sign
279return 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 ,