5 OCSP_response_status, OCSP_response_get1_basic, OCSP_response_create,
6 OCSP_RESPONSE_free - OCSP response functions
10 #include <openssl/ocsp.h>
12 int OCSP_response_status(OCSP_RESPONSE *resp);
13 OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);
14 OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);
15 void OCSP_RESPONSE_free(OCSP_RESPONSE *resp);
19 OCSP_response_status() returns the OCSP response status of B<resp>. It returns
20 one of the values: B<OCSP_RESPONSE_STATUS_SUCCESSFUL>,
21 B<OCSP_RESPONSE_STATUS_MALFORMEDREQUEST>,
22 B<OCSP_RESPONSE_STATUS_INTERNALERROR>, B<OCSP_RESPONSE_STATUS_TRYLATER>
23 B<OCSP_RESPONSE_STATUS_SIGREQUIRED>, or B<OCSP_RESPONSE_STATUS_UNAUTHORIZED>.
25 OCSP_response_get1_basic() decodes and returns the B<OCSP_BASICRESP> structure
28 OCSP_response_create() creates and returns an B<OCSP_RESPONSE> structure for
29 B<status> and optionally including basic response B<bs>.
31 OCSP_RESPONSE_free() frees up OCSP response B<resp>.
35 OCSP_RESPONSE_status() returns a status value.
37 OCSP_response_get1_basic() returns an B<OCSP_BASICRESP> structure pointer or
38 B<NULL> if an error occurred.
40 OCSP_response_create() returns an B<OCSP_RESPONSE> structure pointer or B<NULL>
43 OCSP_RESPONSE_free() does not return a value.
47 OCSP_response_get1_basic() is only called if the status of a response is
48 B<OCSP_RESPONSE_STATUS_SUCCESSFUL>.
54 L<OCSP_request_add1_nonce(3)>
55 L<OCSP_REQUEST_new(3)>
56 L<OCSP_response_find_status(3)>
57 L<OCSP_sendreq_new(3)>
61 Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.
63 Licensed under the OpenSSL license (the "License"). You may not use
64 this file except in compliance with the License. You can obtain a copy
65 in the file LICENSE in the source distribution or at
66 L<https://www.openssl.org/source/license.html>.