ocsp.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. /*
  2. * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  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
  8. */
  9. #ifndef HEADER_OCSP_H
  10. # define HEADER_OCSP_H
  11. #include <openssl/opensslconf.h>
  12. /*
  13. * These definitions are outside the OPENSSL_NO_OCSP guard because although for
  14. * historical reasons they have OCSP_* names, they can actually be used
  15. * independently of OCSP. E.g. see RFC5280
  16. */
  17. /*-
  18. * CRLReason ::= ENUMERATED {
  19. * unspecified (0),
  20. * keyCompromise (1),
  21. * cACompromise (2),
  22. * affiliationChanged (3),
  23. * superseded (4),
  24. * cessationOfOperation (5),
  25. * certificateHold (6),
  26. * removeFromCRL (8) }
  27. */
  28. # define OCSP_REVOKED_STATUS_NOSTATUS -1
  29. # define OCSP_REVOKED_STATUS_UNSPECIFIED 0
  30. # define OCSP_REVOKED_STATUS_KEYCOMPROMISE 1
  31. # define OCSP_REVOKED_STATUS_CACOMPROMISE 2
  32. # define OCSP_REVOKED_STATUS_AFFILIATIONCHANGED 3
  33. # define OCSP_REVOKED_STATUS_SUPERSEDED 4
  34. # define OCSP_REVOKED_STATUS_CESSATIONOFOPERATION 5
  35. # define OCSP_REVOKED_STATUS_CERTIFICATEHOLD 6
  36. # define OCSP_REVOKED_STATUS_REMOVEFROMCRL 8
  37. # ifndef OPENSSL_NO_OCSP
  38. # include <openssl/ossl_typ.h>
  39. # include <openssl/x509.h>
  40. # include <openssl/x509v3.h>
  41. # include <openssl/safestack.h>
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45. /* Various flags and values */
  46. # define OCSP_DEFAULT_NONCE_LENGTH 16
  47. # define OCSP_NOCERTS 0x1
  48. # define OCSP_NOINTERN 0x2
  49. # define OCSP_NOSIGS 0x4
  50. # define OCSP_NOCHAIN 0x8
  51. # define OCSP_NOVERIFY 0x10
  52. # define OCSP_NOEXPLICIT 0x20
  53. # define OCSP_NOCASIGN 0x40
  54. # define OCSP_NODELEGATED 0x80
  55. # define OCSP_NOCHECKS 0x100
  56. # define OCSP_TRUSTOTHER 0x200
  57. # define OCSP_RESPID_KEY 0x400
  58. # define OCSP_NOTIME 0x800
  59. typedef struct ocsp_cert_id_st OCSP_CERTID;
  60. DEFINE_STACK_OF(OCSP_CERTID)
  61. typedef struct ocsp_one_request_st OCSP_ONEREQ;
  62. DEFINE_STACK_OF(OCSP_ONEREQ)
  63. typedef struct ocsp_req_info_st OCSP_REQINFO;
  64. typedef struct ocsp_signature_st OCSP_SIGNATURE;
  65. typedef struct ocsp_request_st OCSP_REQUEST;
  66. # define OCSP_RESPONSE_STATUS_SUCCESSFUL 0
  67. # define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST 1
  68. # define OCSP_RESPONSE_STATUS_INTERNALERROR 2
  69. # define OCSP_RESPONSE_STATUS_TRYLATER 3
  70. # define OCSP_RESPONSE_STATUS_SIGREQUIRED 5
  71. # define OCSP_RESPONSE_STATUS_UNAUTHORIZED 6
  72. typedef struct ocsp_resp_bytes_st OCSP_RESPBYTES;
  73. # define V_OCSP_RESPID_NAME 0
  74. # define V_OCSP_RESPID_KEY 1
  75. DEFINE_STACK_OF(OCSP_RESPID)
  76. DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
  77. typedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;
  78. # define V_OCSP_CERTSTATUS_GOOD 0
  79. # define V_OCSP_CERTSTATUS_REVOKED 1
  80. # define V_OCSP_CERTSTATUS_UNKNOWN 2
  81. typedef struct ocsp_cert_status_st OCSP_CERTSTATUS;
  82. typedef struct ocsp_single_response_st OCSP_SINGLERESP;
  83. DEFINE_STACK_OF(OCSP_SINGLERESP)
  84. typedef struct ocsp_response_data_st OCSP_RESPDATA;
  85. typedef struct ocsp_basic_response_st OCSP_BASICRESP;
  86. typedef struct ocsp_crl_id_st OCSP_CRLID;
  87. typedef struct ocsp_service_locator_st OCSP_SERVICELOC;
  88. # define PEM_STRING_OCSP_REQUEST "OCSP REQUEST"
  89. # define PEM_STRING_OCSP_RESPONSE "OCSP RESPONSE"
  90. # define d2i_OCSP_REQUEST_bio(bp,p) ASN1_d2i_bio_of(OCSP_REQUEST,OCSP_REQUEST_new,d2i_OCSP_REQUEST,bp,p)
  91. # define d2i_OCSP_RESPONSE_bio(bp,p) ASN1_d2i_bio_of(OCSP_RESPONSE,OCSP_RESPONSE_new,d2i_OCSP_RESPONSE,bp,p)
  92. # define PEM_read_bio_OCSP_REQUEST(bp,x,cb) (OCSP_REQUEST *)PEM_ASN1_read_bio( \
  93. (char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,bp,(char **)x,cb,NULL)
  94. # define PEM_read_bio_OCSP_RESPONSE(bp,x,cb)(OCSP_RESPONSE *)PEM_ASN1_read_bio(\
  95. (char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,bp,(char **)x,cb,NULL)
  96. # define PEM_write_bio_OCSP_REQUEST(bp,o) \
  97. PEM_ASN1_write_bio((int (*)())i2d_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,\
  98. bp,(char *)o, NULL,NULL,0,NULL,NULL)
  99. # define PEM_write_bio_OCSP_RESPONSE(bp,o) \
  100. PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\
  101. bp,(char *)o, NULL,NULL,0,NULL,NULL)
  102. # define i2d_OCSP_RESPONSE_bio(bp,o) ASN1_i2d_bio_of(OCSP_RESPONSE,i2d_OCSP_RESPONSE,bp,o)
  103. # define i2d_OCSP_REQUEST_bio(bp,o) ASN1_i2d_bio_of(OCSP_REQUEST,i2d_OCSP_REQUEST,bp,o)
  104. # define ASN1_BIT_STRING_digest(data,type,md,len) \
  105. ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len)
  106. # define OCSP_CERTSTATUS_dup(cs)\
  107. (OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\
  108. (char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs))
  109. OCSP_CERTID *OCSP_CERTID_dup(OCSP_CERTID *id);
  110. OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);
  111. OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,
  112. int maxline);
  113. int OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx);
  114. int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);
  115. OCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline);
  116. void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);
  117. void OCSP_set_max_response_length(OCSP_REQ_CTX *rctx, unsigned long len);
  118. int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
  119. ASN1_VALUE *val);
  120. int OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,
  121. const ASN1_ITEM *it);
  122. BIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);
  123. int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
  124. ASN1_VALUE *val);
  125. int OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);
  126. int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);
  127. int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,
  128. const char *name, const char *value);
  129. OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject,
  130. const X509 *issuer);
  131. OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst,
  132. const X509_NAME *issuerName,
  133. const ASN1_BIT_STRING *issuerKey,
  134. const ASN1_INTEGER *serialNumber);
  135. OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid);
  136. int OCSP_request_add1_nonce(OCSP_REQUEST *req, unsigned char *val, int len);
  137. int OCSP_basic_add1_nonce(OCSP_BASICRESP *resp, unsigned char *val, int len);
  138. int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs);
  139. int OCSP_copy_nonce(OCSP_BASICRESP *resp, OCSP_REQUEST *req);
  140. int OCSP_request_set1_name(OCSP_REQUEST *req, X509_NAME *nm);
  141. int OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert);
  142. int OCSP_request_sign(OCSP_REQUEST *req,
  143. X509 *signer,
  144. EVP_PKEY *key,
  145. const EVP_MD *dgst,
  146. STACK_OF(X509) *certs, unsigned long flags);
  147. int OCSP_response_status(OCSP_RESPONSE *resp);
  148. OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);
  149. const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);
  150. int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,
  151. STACK_OF(X509) *extra_certs);
  152. int OCSP_resp_count(OCSP_BASICRESP *bs);
  153. OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);
  154. const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP* bs);
  155. const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);
  156. int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
  157. const ASN1_OCTET_STRING **pid,
  158. const X509_NAME **pname);
  159. int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);
  160. int OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason,
  161. ASN1_GENERALIZEDTIME **revtime,
  162. ASN1_GENERALIZEDTIME **thisupd,
  163. ASN1_GENERALIZEDTIME **nextupd);
  164. int OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,
  165. int *reason,
  166. ASN1_GENERALIZEDTIME **revtime,
  167. ASN1_GENERALIZEDTIME **thisupd,
  168. ASN1_GENERALIZEDTIME **nextupd);
  169. int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,
  170. ASN1_GENERALIZEDTIME *nextupd, long sec, long maxsec);
  171. int OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs,
  172. X509_STORE *store, unsigned long flags);
  173. int OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,
  174. int *pssl);
  175. int OCSP_id_issuer_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
  176. int OCSP_id_cmp(OCSP_CERTID *a, OCSP_CERTID *b);
  177. int OCSP_request_onereq_count(OCSP_REQUEST *req);
  178. OCSP_ONEREQ *OCSP_request_onereq_get0(OCSP_REQUEST *req, int i);
  179. OCSP_CERTID *OCSP_onereq_get0_id(OCSP_ONEREQ *one);
  180. int OCSP_id_get0_info(ASN1_OCTET_STRING **piNameHash, ASN1_OBJECT **pmd,
  181. ASN1_OCTET_STRING **pikeyHash,
  182. ASN1_INTEGER **pserial, OCSP_CERTID *cid);
  183. int OCSP_request_is_signed(OCSP_REQUEST *req);
  184. OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);
  185. OCSP_SINGLERESP *OCSP_basic_add1_status(OCSP_BASICRESP *rsp,
  186. OCSP_CERTID *cid,
  187. int status, int reason,
  188. ASN1_TIME *revtime,
  189. ASN1_TIME *thisupd,
  190. ASN1_TIME *nextupd);
  191. int OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert);
  192. int OCSP_basic_sign(OCSP_BASICRESP *brsp,
  193. X509 *signer, EVP_PKEY *key, const EVP_MD *dgst,
  194. STACK_OF(X509) *certs, unsigned long flags);
  195. int OCSP_RESPID_set_by_name(OCSP_RESPID *respid, X509 *cert);
  196. int OCSP_RESPID_set_by_key(OCSP_RESPID *respid, X509 *cert);
  197. int OCSP_RESPID_match(OCSP_RESPID *respid, X509 *cert);
  198. X509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim);
  199. X509_EXTENSION *OCSP_accept_responses_new(char **oids);
  200. X509_EXTENSION *OCSP_archive_cutoff_new(char *tim);
  201. X509_EXTENSION *OCSP_url_svcloc_new(X509_NAME *issuer, const char **urls);
  202. int OCSP_REQUEST_get_ext_count(OCSP_REQUEST *x);
  203. int OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos);
  204. int OCSP_REQUEST_get_ext_by_OBJ(OCSP_REQUEST *x, const ASN1_OBJECT *obj,
  205. int lastpos);
  206. int OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos);
  207. X509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc);
  208. X509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc);
  209. void *OCSP_REQUEST_get1_ext_d2i(OCSP_REQUEST *x, int nid, int *crit,
  210. int *idx);
  211. int OCSP_REQUEST_add1_ext_i2d(OCSP_REQUEST *x, int nid, void *value, int crit,
  212. unsigned long flags);
  213. int OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc);
  214. int OCSP_ONEREQ_get_ext_count(OCSP_ONEREQ *x);
  215. int OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos);
  216. int OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj, int lastpos);
  217. int OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos);
  218. X509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc);
  219. X509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc);
  220. void *OCSP_ONEREQ_get1_ext_d2i(OCSP_ONEREQ *x, int nid, int *crit, int *idx);
  221. int OCSP_ONEREQ_add1_ext_i2d(OCSP_ONEREQ *x, int nid, void *value, int crit,
  222. unsigned long flags);
  223. int OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc);
  224. int OCSP_BASICRESP_get_ext_count(OCSP_BASICRESP *x);
  225. int OCSP_BASICRESP_get_ext_by_NID(OCSP_BASICRESP *x, int nid, int lastpos);
  226. int OCSP_BASICRESP_get_ext_by_OBJ(OCSP_BASICRESP *x, const ASN1_OBJECT *obj,
  227. int lastpos);
  228. int OCSP_BASICRESP_get_ext_by_critical(OCSP_BASICRESP *x, int crit,
  229. int lastpos);
  230. X509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc);
  231. X509_EXTENSION *OCSP_BASICRESP_delete_ext(OCSP_BASICRESP *x, int loc);
  232. void *OCSP_BASICRESP_get1_ext_d2i(OCSP_BASICRESP *x, int nid, int *crit,
  233. int *idx);
  234. int OCSP_BASICRESP_add1_ext_i2d(OCSP_BASICRESP *x, int nid, void *value,
  235. int crit, unsigned long flags);
  236. int OCSP_BASICRESP_add_ext(OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc);
  237. int OCSP_SINGLERESP_get_ext_count(OCSP_SINGLERESP *x);
  238. int OCSP_SINGLERESP_get_ext_by_NID(OCSP_SINGLERESP *x, int nid, int lastpos);
  239. int OCSP_SINGLERESP_get_ext_by_OBJ(OCSP_SINGLERESP *x, const ASN1_OBJECT *obj,
  240. int lastpos);
  241. int OCSP_SINGLERESP_get_ext_by_critical(OCSP_SINGLERESP *x, int crit,
  242. int lastpos);
  243. X509_EXTENSION *OCSP_SINGLERESP_get_ext(OCSP_SINGLERESP *x, int loc);
  244. X509_EXTENSION *OCSP_SINGLERESP_delete_ext(OCSP_SINGLERESP *x, int loc);
  245. void *OCSP_SINGLERESP_get1_ext_d2i(OCSP_SINGLERESP *x, int nid, int *crit,
  246. int *idx);
  247. int OCSP_SINGLERESP_add1_ext_i2d(OCSP_SINGLERESP *x, int nid, void *value,
  248. int crit, unsigned long flags);
  249. int OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, int loc);
  250. const OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *x);
  251. DECLARE_ASN1_FUNCTIONS(OCSP_SINGLERESP)
  252. DECLARE_ASN1_FUNCTIONS(OCSP_CERTSTATUS)
  253. DECLARE_ASN1_FUNCTIONS(OCSP_REVOKEDINFO)
  254. DECLARE_ASN1_FUNCTIONS(OCSP_BASICRESP)
  255. DECLARE_ASN1_FUNCTIONS(OCSP_RESPDATA)
  256. DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
  257. DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
  258. DECLARE_ASN1_FUNCTIONS(OCSP_RESPBYTES)
  259. DECLARE_ASN1_FUNCTIONS(OCSP_ONEREQ)
  260. DECLARE_ASN1_FUNCTIONS(OCSP_CERTID)
  261. DECLARE_ASN1_FUNCTIONS(OCSP_REQUEST)
  262. DECLARE_ASN1_FUNCTIONS(OCSP_SIGNATURE)
  263. DECLARE_ASN1_FUNCTIONS(OCSP_REQINFO)
  264. DECLARE_ASN1_FUNCTIONS(OCSP_CRLID)
  265. DECLARE_ASN1_FUNCTIONS(OCSP_SERVICELOC)
  266. const char *OCSP_response_status_str(long s);
  267. const char *OCSP_cert_status_str(long s);
  268. const char *OCSP_crl_reason_str(long s);
  269. int OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST *a, unsigned long flags);
  270. int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags);
  271. int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,
  272. X509_STORE *st, unsigned long flags);
  273. /* BEGIN ERROR CODES */
  274. /*
  275. * The following lines are auto generated by the script mkerr.pl. Any changes
  276. * made after this point may be overwritten when the script is next run.
  277. */
  278. int ERR_load_OCSP_strings(void);
  279. /* Error codes for the OCSP functions. */
  280. /* Function codes. */
  281. # define OCSP_F_D2I_OCSP_NONCE 102
  282. # define OCSP_F_OCSP_BASIC_ADD1_STATUS 103
  283. # define OCSP_F_OCSP_BASIC_SIGN 104
  284. # define OCSP_F_OCSP_BASIC_VERIFY 105
  285. # define OCSP_F_OCSP_CERT_ID_NEW 101
  286. # define OCSP_F_OCSP_CHECK_DELEGATED 106
  287. # define OCSP_F_OCSP_CHECK_IDS 107
  288. # define OCSP_F_OCSP_CHECK_ISSUER 108
  289. # define OCSP_F_OCSP_CHECK_VALIDITY 115
  290. # define OCSP_F_OCSP_MATCH_ISSUERID 109
  291. # define OCSP_F_OCSP_PARSE_URL 114
  292. # define OCSP_F_OCSP_REQUEST_SIGN 110
  293. # define OCSP_F_OCSP_REQUEST_VERIFY 116
  294. # define OCSP_F_OCSP_RESPONSE_GET1_BASIC 111
  295. # define OCSP_F_PARSE_HTTP_LINE1 118
  296. /* Reason codes. */
  297. # define OCSP_R_CERTIFICATE_VERIFY_ERROR 101
  298. # define OCSP_R_DIGEST_ERR 102
  299. # define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD 122
  300. # define OCSP_R_ERROR_IN_THISUPDATE_FIELD 123
  301. # define OCSP_R_ERROR_PARSING_URL 121
  302. # define OCSP_R_MISSING_OCSPSIGNING_USAGE 103
  303. # define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE 124
  304. # define OCSP_R_NOT_BASIC_RESPONSE 104
  305. # define OCSP_R_NO_CERTIFICATES_IN_CHAIN 105
  306. # define OCSP_R_NO_RESPONSE_DATA 108
  307. # define OCSP_R_NO_REVOKED_TIME 109
  308. # define OCSP_R_NO_SIGNER_KEY 130
  309. # define OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 110
  310. # define OCSP_R_REQUEST_NOT_SIGNED 128
  311. # define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA 111
  312. # define OCSP_R_ROOT_CA_NOT_TRUSTED 112
  313. # define OCSP_R_SERVER_RESPONSE_ERROR 114
  314. # define OCSP_R_SERVER_RESPONSE_PARSE_ERROR 115
  315. # define OCSP_R_SIGNATURE_FAILURE 117
  316. # define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND 118
  317. # define OCSP_R_STATUS_EXPIRED 125
  318. # define OCSP_R_STATUS_NOT_YET_VALID 126
  319. # define OCSP_R_STATUS_TOO_OLD 127
  320. # define OCSP_R_UNKNOWN_MESSAGE_DIGEST 119
  321. # define OCSP_R_UNKNOWN_NID 120
  322. # define OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE 129
  323. # ifdef __cplusplus
  324. }
  325. # endif
  326. # endif
  327. #endif