]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/openssl/ocsp.h
add getter for tbsResponseData and signatureAlgorithm on OCSP_BASICRESP
[thirdparty/openssl.git] / include / openssl / ocsp.h
CommitLineData
0f113f3e 1/*
6738bf14 2 * Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
eb64730b 3 *
21dcbebc
RS
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
eb64730b
RL
8 */
9
10#ifndef HEADER_OCSP_H
0f113f3e 11# define HEADER_OCSP_H
eb64730b 12
5951e840
MC
13#include <openssl/opensslconf.h>
14
15/*
16 * These definitions are outside the OPENSSL_NO_OCSP guard because although for
17 * historical reasons they have OCSP_* names, they can actually be used
18 * independently of OCSP. E.g. see RFC5280
19 */
20/*-
21 * CRLReason ::= ENUMERATED {
22 * unspecified (0),
23 * keyCompromise (1),
24 * cACompromise (2),
25 * affiliationChanged (3),
26 * superseded (4),
27 * cessationOfOperation (5),
28 * certificateHold (6),
29 * removeFromCRL (8) }
30 */
31# define OCSP_REVOKED_STATUS_NOSTATUS -1
32# define OCSP_REVOKED_STATUS_UNSPECIFIED 0
33# define OCSP_REVOKED_STATUS_KEYCOMPROMISE 1
34# define OCSP_REVOKED_STATUS_CACOMPROMISE 2
35# define OCSP_REVOKED_STATUS_AFFILIATIONCHANGED 3
36# define OCSP_REVOKED_STATUS_SUPERSEDED 4
37# define OCSP_REVOKED_STATUS_CESSATIONOFOPERATION 5
38# define OCSP_REVOKED_STATUS_CERTIFICATEHOLD 6
39# define OCSP_REVOKED_STATUS_REMOVEFROMCRL 8
40
41
42# ifndef OPENSSL_NO_OCSP
43
44# include <openssl/ossl_typ.h>
45# include <openssl/x509.h>
46# include <openssl/x509v3.h>
47# include <openssl/safestack.h>
52df25cf 48# include <openssl/ocsperr.h>
eb64730b
RL
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53
0b33bc65
DSH
54/* Various flags and values */
55
5951e840
MC
56# define OCSP_DEFAULT_NONCE_LENGTH 16
57
58# define OCSP_NOCERTS 0x1
59# define OCSP_NOINTERN 0x2
60# define OCSP_NOSIGS 0x4
61# define OCSP_NOCHAIN 0x8
62# define OCSP_NOVERIFY 0x10
63# define OCSP_NOEXPLICIT 0x20
64# define OCSP_NOCASIGN 0x40
65# define OCSP_NODELEGATED 0x80
66# define OCSP_NOCHECKS 0x100
67# define OCSP_TRUSTOTHER 0x200
68# define OCSP_RESPID_KEY 0x400
69# define OCSP_NOTIME 0x800
0b33bc65 70
6ef869d7 71typedef struct ocsp_cert_id_st OCSP_CERTID;
eb64730b 72
85885715 73DEFINE_STACK_OF(OCSP_CERTID)
73758d43 74
6ef869d7 75typedef struct ocsp_one_request_st OCSP_ONEREQ;
eb64730b 76
85885715 77DEFINE_STACK_OF(OCSP_ONEREQ)
eb64730b 78
6ef869d7
DSH
79typedef struct ocsp_req_info_st OCSP_REQINFO;
80typedef struct ocsp_signature_st OCSP_SIGNATURE;
81typedef struct ocsp_request_st OCSP_REQUEST;
82
5951e840
MC
83# define OCSP_RESPONSE_STATUS_SUCCESSFUL 0
84# define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST 1
85# define OCSP_RESPONSE_STATUS_INTERNALERROR 2
86# define OCSP_RESPONSE_STATUS_TRYLATER 3
87# define OCSP_RESPONSE_STATUS_SIGREQUIRED 5
88# define OCSP_RESPONSE_STATUS_UNAUTHORIZED 6
eb64730b 89
6ef869d7
DSH
90typedef struct ocsp_resp_bytes_st OCSP_RESPBYTES;
91
5951e840
MC
92# define V_OCSP_RESPID_NAME 0
93# define V_OCSP_RESPID_KEY 1
67c8e7f4 94
85885715 95DEFINE_STACK_OF(OCSP_RESPID)
67c8e7f4
DSH
96DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
97
6ef869d7 98typedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;
eb64730b 99
5951e840
MC
100# define V_OCSP_CERTSTATUS_GOOD 0
101# define V_OCSP_CERTSTATUS_REVOKED 1
102# define V_OCSP_CERTSTATUS_UNKNOWN 2
6ef869d7
DSH
103
104typedef struct ocsp_cert_status_st OCSP_CERTSTATUS;
105typedef struct ocsp_single_response_st OCSP_SINGLERESP;
eb64730b 106
85885715 107DEFINE_STACK_OF(OCSP_SINGLERESP)
eb64730b 108
6ef869d7
DSH
109typedef struct ocsp_response_data_st OCSP_RESPDATA;
110
111typedef struct ocsp_basic_response_st OCSP_BASICRESP;
eb64730b 112
6ef869d7
DSH
113typedef struct ocsp_crl_id_st OCSP_CRLID;
114typedef struct ocsp_service_locator_st OCSP_SERVICELOC;
0f113f3e 115
5951e840
MC
116# define PEM_STRING_OCSP_REQUEST "OCSP REQUEST"
117# define PEM_STRING_OCSP_RESPONSE "OCSP RESPONSE"
eb64730b 118
5951e840 119# define d2i_OCSP_REQUEST_bio(bp,p) ASN1_d2i_bio_of(OCSP_REQUEST,OCSP_REQUEST_new,d2i_OCSP_REQUEST,bp,p)
eb64730b 120
5951e840 121# define d2i_OCSP_RESPONSE_bio(bp,p) ASN1_d2i_bio_of(OCSP_RESPONSE,OCSP_RESPONSE_new,d2i_OCSP_RESPONSE,bp,p)
eb64730b 122
5951e840 123# define PEM_read_bio_OCSP_REQUEST(bp,x,cb) (OCSP_REQUEST *)PEM_ASN1_read_bio( \
37659ea4
BE
124 (char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST, \
125 bp,(char **)(x),cb,NULL)
eb64730b 126
37659ea4
BE
127# define PEM_read_bio_OCSP_RESPONSE(bp,x,cb)(OCSP_RESPONSE *)PEM_ASN1_read_bio(\
128 (char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE, \
129 bp,(char **)(x),cb,NULL)
eb64730b 130
5951e840 131# define PEM_write_bio_OCSP_REQUEST(bp,o) \
eb64730b 132 PEM_ASN1_write_bio((int (*)())i2d_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,\
37659ea4 133 bp,(char *)(o), NULL,NULL,0,NULL,NULL)
eb64730b 134
5951e840 135# define PEM_write_bio_OCSP_RESPONSE(bp,o) \
eb64730b 136 PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\
37659ea4 137 bp,(char *)(o), NULL,NULL,0,NULL,NULL)
eb64730b 138
5951e840 139# define i2d_OCSP_RESPONSE_bio(bp,o) ASN1_i2d_bio_of(OCSP_RESPONSE,i2d_OCSP_RESPONSE,bp,o)
eb64730b 140
5951e840 141# define i2d_OCSP_REQUEST_bio(bp,o) ASN1_i2d_bio_of(OCSP_REQUEST,i2d_OCSP_REQUEST,bp,o)
eb64730b 142
5951e840 143# define ASN1_BIT_STRING_digest(data,type,md,len) \
0f113f3e 144 ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len)
eb64730b 145
5951e840 146# define OCSP_CERTSTATUS_dup(cs)\
eb64730b 147 (OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\
0f113f3e 148 (char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs))
eb64730b 149
fb596f3b
DSH
150OCSP_CERTID *OCSP_CERTID_dup(OCSP_CERTID *id);
151
c45a48c1
BL
152OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);
153OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,
0f113f3e 154 int maxline);
6f9076ff 155int OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx);
c1c6c0bf 156int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);
6f9076ff 157OCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline);
c1c6c0bf 158void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);
6f9076ff 159void OCSP_set_max_response_length(OCSP_REQ_CTX *rctx, unsigned long len);
0f113f3e
MC
160int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
161 ASN1_VALUE *val);
162int OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,
163 const ASN1_ITEM *it);
6f9076ff 164BIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);
0f113f3e
MC
165int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
166 ASN1_VALUE *val);
6f9076ff 167int OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);
18e503f3
DSH
168int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);
169int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,
0f113f3e 170 const char *name, const char *value);
bf0d176e 171
68c12bfc
DSH
172OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject,
173 const X509 *issuer);
bf0d176e 174
0f113f3e 175OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst,
68c12bfc
DSH
176 const X509_NAME *issuerName,
177 const ASN1_BIT_STRING *issuerKey,
178 const ASN1_INTEGER *serialNumber);
eb64730b 179
0b33bc65 180OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid);
26e083cc 181
0b33bc65 182int OCSP_request_add1_nonce(OCSP_REQUEST *req, unsigned char *val, int len);
46a58ab9 183int OCSP_basic_add1_nonce(OCSP_BASICRESP *resp, unsigned char *val, int len);
0b33bc65 184int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs);
26e083cc
DSH
185int OCSP_copy_nonce(OCSP_BASICRESP *resp, OCSP_REQUEST *req);
186
0b33bc65
DSH
187int OCSP_request_set1_name(OCSP_REQUEST *req, X509_NAME *nm);
188int OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert);
eb64730b 189
0f113f3e
MC
190int OCSP_request_sign(OCSP_REQUEST *req,
191 X509 *signer,
192 EVP_PKEY *key,
193 const EVP_MD *dgst,
194 STACK_OF(X509) *certs, unsigned long flags);
0b33bc65
DSH
195
196int OCSP_response_status(OCSP_RESPONSE *resp);
197OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);
eb64730b 198
79613ea8 199const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);
20c36721
PK
200const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs);
201const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs);
ce5886dd
BK
202int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,
203 STACK_OF(X509) *extra_certs);
6ef869d7 204
b5524a3a
DSH
205int OCSP_resp_count(OCSP_BASICRESP *bs);
206OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);
79613ea8 207const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP* bs);
02fb7cfe
DSH
208const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);
209int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
210 const ASN1_OCTET_STRING **pid,
211 const X509_NAME **pname);
db17e43d
SS
212int OCSP_resp_get1_id(const OCSP_BASICRESP *bs,
213 ASN1_OCTET_STRING **pid,
214 X509_NAME **pname);
02fb7cfe 215
b5524a3a
DSH
216int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);
217int OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason,
0f113f3e
MC
218 ASN1_GENERALIZEDTIME **revtime,
219 ASN1_GENERALIZEDTIME **thisupd,
220 ASN1_GENERALIZEDTIME **nextupd);
b5524a3a 221int OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,
0f113f3e
MC
222 int *reason,
223 ASN1_GENERALIZEDTIME **revtime,
224 ASN1_GENERALIZEDTIME **thisupd,
225 ASN1_GENERALIZEDTIME **nextupd);
f1965221 226int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,
0f113f3e 227 ASN1_GENERALIZEDTIME *nextupd, long sec, long maxsec);
b5524a3a 228
0f113f3e
MC
229int OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs,
230 X509_STORE *store, unsigned long flags);
eb64730b 231
0f113f3e
MC
232int OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,
233 int *pssl);
67c18019 234
81f169e9 235int OCSP_id_issuer_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
0b33bc65
DSH
236int OCSP_id_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
237
02e4fbed
DSH
238int OCSP_request_onereq_count(OCSP_REQUEST *req);
239OCSP_ONEREQ *OCSP_request_onereq_get0(OCSP_REQUEST *req, int i);
240OCSP_CERTID *OCSP_onereq_get0_id(OCSP_ONEREQ *one);
241int OCSP_id_get0_info(ASN1_OCTET_STRING **piNameHash, ASN1_OBJECT **pmd,
0f113f3e
MC
242 ASN1_OCTET_STRING **pikeyHash,
243 ASN1_INTEGER **pserial, OCSP_CERTID *cid);
fafc7f98 244int OCSP_request_is_signed(OCSP_REQUEST *req);
2b916952 245OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);
02e4fbed 246OCSP_SINGLERESP *OCSP_basic_add1_status(OCSP_BASICRESP *rsp,
0f113f3e
MC
247 OCSP_CERTID *cid,
248 int status, int reason,
249 ASN1_TIME *revtime,
250 ASN1_TIME *thisupd,
251 ASN1_TIME *nextupd);
02e4fbed 252int OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert);
0f113f3e
MC
253int OCSP_basic_sign(OCSP_BASICRESP *brsp,
254 X509 *signer, EVP_PKEY *key, const EVP_MD *dgst,
255 STACK_OF(X509) *certs, unsigned long flags);
b4dd21a7
DC
256int OCSP_basic_sign_ctx(OCSP_BASICRESP *brsp,
257 X509 *signer, EVP_MD_CTX *ctx,
258 STACK_OF(X509) *certs, unsigned long flags);
e12c0beb
MC
259int OCSP_RESPID_set_by_name(OCSP_RESPID *respid, X509 *cert);
260int OCSP_RESPID_set_by_key(OCSP_RESPID *respid, X509 *cert);
a671b3e6 261int OCSP_RESPID_match(OCSP_RESPID *respid, X509 *cert);
eb64730b 262
a026fbf9 263X509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim);
eb64730b
RL
264
265X509_EXTENSION *OCSP_accept_responses_new(char **oids);
266
0f113f3e 267X509_EXTENSION *OCSP_archive_cutoff_new(char *tim);
eb64730b 268
a026fbf9 269X509_EXTENSION *OCSP_url_svcloc_new(X509_NAME *issuer, const char **urls);
eb64730b 270
ec558b65
DSH
271int OCSP_REQUEST_get_ext_count(OCSP_REQUEST *x);
272int OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos);
c47ba4e9 273int OCSP_REQUEST_get_ext_by_OBJ(OCSP_REQUEST *x, const ASN1_OBJECT *obj,
0f113f3e 274 int lastpos);
ec558b65
DSH
275int OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos);
276X509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc);
277X509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc);
0f113f3e
MC
278void *OCSP_REQUEST_get1_ext_d2i(OCSP_REQUEST *x, int nid, int *crit,
279 int *idx);
ec558b65 280int OCSP_REQUEST_add1_ext_i2d(OCSP_REQUEST *x, int nid, void *value, int crit,
0f113f3e 281 unsigned long flags);
ec558b65
DSH
282int OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc);
283
284int OCSP_ONEREQ_get_ext_count(OCSP_ONEREQ *x);
285int OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos);
c47ba4e9 286int OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj, int lastpos);
ec558b65
DSH
287int OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos);
288X509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc);
289X509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc);
290void *OCSP_ONEREQ_get1_ext_d2i(OCSP_ONEREQ *x, int nid, int *crit, int *idx);
291int OCSP_ONEREQ_add1_ext_i2d(OCSP_ONEREQ *x, int nid, void *value, int crit,
0f113f3e 292 unsigned long flags);
ec558b65
DSH
293int OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc);
294
295int OCSP_BASICRESP_get_ext_count(OCSP_BASICRESP *x);
296int OCSP_BASICRESP_get_ext_by_NID(OCSP_BASICRESP *x, int nid, int lastpos);
c47ba4e9 297int OCSP_BASICRESP_get_ext_by_OBJ(OCSP_BASICRESP *x, const ASN1_OBJECT *obj,
0f113f3e
MC
298 int lastpos);
299int OCSP_BASICRESP_get_ext_by_critical(OCSP_BASICRESP *x, int crit,
300 int lastpos);
ec558b65
DSH
301X509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc);
302X509_EXTENSION *OCSP_BASICRESP_delete_ext(OCSP_BASICRESP *x, int loc);
0f113f3e
MC
303void *OCSP_BASICRESP_get1_ext_d2i(OCSP_BASICRESP *x, int nid, int *crit,
304 int *idx);
305int OCSP_BASICRESP_add1_ext_i2d(OCSP_BASICRESP *x, int nid, void *value,
306 int crit, unsigned long flags);
ec558b65
DSH
307int OCSP_BASICRESP_add_ext(OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc);
308
309int OCSP_SINGLERESP_get_ext_count(OCSP_SINGLERESP *x);
310int OCSP_SINGLERESP_get_ext_by_NID(OCSP_SINGLERESP *x, int nid, int lastpos);
c47ba4e9 311int OCSP_SINGLERESP_get_ext_by_OBJ(OCSP_SINGLERESP *x, const ASN1_OBJECT *obj,
0f113f3e
MC
312 int lastpos);
313int OCSP_SINGLERESP_get_ext_by_critical(OCSP_SINGLERESP *x, int crit,
314 int lastpos);
ec558b65
DSH
315X509_EXTENSION *OCSP_SINGLERESP_get_ext(OCSP_SINGLERESP *x, int loc);
316X509_EXTENSION *OCSP_SINGLERESP_delete_ext(OCSP_SINGLERESP *x, int loc);
0f113f3e
MC
317void *OCSP_SINGLERESP_get1_ext_d2i(OCSP_SINGLERESP *x, int nid, int *crit,
318 int *idx);
319int OCSP_SINGLERESP_add1_ext_i2d(OCSP_SINGLERESP *x, int nid, void *value,
320 int crit, unsigned long flags);
ec558b65 321int OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, int loc);
79613ea8 322const OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *x);
ec558b65 323
c08523d8 324DECLARE_ASN1_FUNCTIONS(OCSP_SINGLERESP)
73e92de5
DSH
325DECLARE_ASN1_FUNCTIONS(OCSP_CERTSTATUS)
326DECLARE_ASN1_FUNCTIONS(OCSP_REVOKEDINFO)
327DECLARE_ASN1_FUNCTIONS(OCSP_BASICRESP)
328DECLARE_ASN1_FUNCTIONS(OCSP_RESPDATA)
329DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
330DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
331DECLARE_ASN1_FUNCTIONS(OCSP_RESPBYTES)
332DECLARE_ASN1_FUNCTIONS(OCSP_ONEREQ)
333DECLARE_ASN1_FUNCTIONS(OCSP_CERTID)
334DECLARE_ASN1_FUNCTIONS(OCSP_REQUEST)
335DECLARE_ASN1_FUNCTIONS(OCSP_SIGNATURE)
1f47ec53 336DECLARE_ASN1_FUNCTIONS(OCSP_REQINFO)
c08523d8 337DECLARE_ASN1_FUNCTIONS(OCSP_CRLID)
c08523d8 338DECLARE_ASN1_FUNCTIONS(OCSP_SERVICELOC)
eb64730b 339
ebc06fba
AP
340const char *OCSP_response_status_str(long s);
341const char *OCSP_cert_status_str(long s);
342const char *OCSP_crl_reason_str(long s);
73758d43 343
0f113f3e
MC
344int OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST *a, unsigned long flags);
345int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags);
73e92de5 346
9b4dc830 347int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
0f113f3e 348 X509_STORE *st, unsigned long flags);
73e92de5 349
eb64730b 350
0cd0a820 351# ifdef __cplusplus
eb64730b 352}
0cd0a820 353# endif
5951e840 354# endif
eb64730b 355#endif