From 564b88567c7654beee6596e7700369640bb6c4e8 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Tue, 27 Aug 2019 09:40:29 +0000 Subject: document OCSP_response_status_str(3) --- src/lib/libcrypto/man/OCSP_response_status.3 | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/man/OCSP_response_status.3 b/src/lib/libcrypto/man/OCSP_response_status.3 index 5e443d9a29..4e85384fb0 100644 --- a/src/lib/libcrypto/man/OCSP_response_status.3 +++ b/src/lib/libcrypto/man/OCSP_response_status.3 @@ -1,11 +1,11 @@ -.\" $OpenBSD: OCSP_response_status.3,v 1.7 2019/06/06 01:06:58 schwarze Exp $ +.\" $OpenBSD: OCSP_response_status.3,v 1.8 2019/08/27 09:40:29 schwarze Exp $ .\" full merge up to: OpenSSL bb9ad09e Jun 6 00:43:05 2016 -0400 -.\" selective merge up to: OpenSSL e23ac625 Jan 24 12:27:19 2018 -0500 +.\" selective merge up to: OpenSSL 6738bf14 Feb 13 12:51:29 2018 +0000 .\" .\" This file is a derived work. .\" The changes are covered by the following Copyright and license: .\" -.\" Copyright (c) 2016 Ingo Schwarze +.\" Copyright (c) 2016, 2019 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above @@ -66,7 +66,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: June 6 2019 $ +.Dd $Mdocdate: August 27 2019 $ .Dt OCSP_RESPONSE_STATUS 3 .Os .Sh NAME @@ -82,6 +82,7 @@ .Nm OCSP_RESPID_free , .Nm OCSP_response_create , .Nm OCSP_response_status , +.Nm OCSP_response_status_str , .Nm OCSP_response_get1_basic , .Nm OCSP_basic_sign .Nd OCSP response functions @@ -116,6 +117,10 @@ .Fo OCSP_response_status .Fa "OCSP_RESPONSE *resp" .Fc +.Ft const char * +.Fo OCSP_response_status_str +.Fa "long code" +.Fc .Ft OCSP_BASICRESP * .Fo OCSP_response_get1_basic .Fa "OCSP_RESPONSE *resp" @@ -210,6 +215,13 @@ It returns one of the values or .Dv OCSP_RESPONSE_STATUS_UNAUTHORIZED . .Pp +.Fn OCSP_response_status_str +converts one of the +.Fa status +codes returned by +.Fn OCSP_response_status +to a string consisting of one word. +.Pp .Fn OCSP_response_get1_basic decodes and returns the .Vt OCSP_BASICRESP @@ -275,6 +287,9 @@ if an error occurred. .Fn OCSP_response_status returns a status value. .Pp +.Fn OCSP_response_status_str +returns a pointer to a static string. +.Pp .Fn OCSP_basic_sign return 1 on success or 0 on failure. .Sh SEE ALSO -- cgit v1.2.3-55-g6feb