3 OCSP_response_status, OCSP_response_get1_basic, OCSP_response_create,
4 OCSP_RESPONSE_free - OCSP response functions.
8 #include <openssl/ocsp.h>
10 int OCSP_response_status(OCSP_RESPONSE *resp);
11 OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);
12 OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);
13 void OCSP_RESPONSE_free(OCSP_RESPONSE *resp);
17 OCSP_response_status() returns the OCSP response status of B<resp>. It returns
18 one of the values: B<OCSP_RESPONSE_STATUS_SUCCESSFUL>,
19 B<OCSP_RESPONSE_STATUS_MALFORMEDREQUEST>,
20 B<OCSP_RESPONSE_STATUS_INTERNALERROR>, B<OCSP_RESPONSE_STATUS_TRYLATER>
21 B<OCSP_RESPONSE_STATUS_SIGREQUIRED>, or B<OCSP_RESPONSE_STATUS_UNAUTHORIZED>.
23 OCSP_response_get1_basic() decodes and returns the B<OCSP_BASICRESP> structure
26 OCSP_response_create() creates and returns an B<OCSP_RESPONSE> structure for
27 B<status> and optionally including basic response B<bs>.
29 OCSP_RESPONSE_free() frees up OCSP reponse B<resp>.
33 OCSP_RESPONSE_status() returns a status value.
35 OCSP_response_get1_basic() returns an B<OCSP_BASICRESP> structure pointer or
36 B<NULL> if an error occurred.
38 OCSP_response_create() returns an B<OCSP_RESPONSE> structure pointer or B<NULL>
41 OCSP_RESPONSE_free() does not return a value.
45 OCSP_response_get1_basic() is only called if the status of a response is
46 B<OCSP_RESPONSE_STATUS_SUCCESSFUL>.
52 L<OCSP_request_add1_nonce(3)>
53 L<OCSP_REQUEST_new(3)>
54 L<OCSP_response_find_status(3)>
55 L<OCSP_sendreq_new(3)>