jpayne@69: /* jpayne@69: * Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved. jpayne@69: * jpayne@69: * Licensed under the OpenSSL license (the "License"). You may not use jpayne@69: * this file except in compliance with the License. You can obtain a copy jpayne@69: * in the file LICENSE in the source distribution or at jpayne@69: * https://www.openssl.org/source/license.html jpayne@69: */ jpayne@69: jpayne@69: #ifndef HEADER_OCSP_H jpayne@69: # define HEADER_OCSP_H jpayne@69: jpayne@69: #include jpayne@69: jpayne@69: /* jpayne@69: * These definitions are outside the OPENSSL_NO_OCSP guard because although for jpayne@69: * historical reasons they have OCSP_* names, they can actually be used jpayne@69: * independently of OCSP. E.g. see RFC5280 jpayne@69: */ jpayne@69: /*- jpayne@69: * CRLReason ::= ENUMERATED { jpayne@69: * unspecified (0), jpayne@69: * keyCompromise (1), jpayne@69: * cACompromise (2), jpayne@69: * affiliationChanged (3), jpayne@69: * superseded (4), jpayne@69: * cessationOfOperation (5), jpayne@69: * certificateHold (6), jpayne@69: * removeFromCRL (8) } jpayne@69: */ jpayne@69: # define OCSP_REVOKED_STATUS_NOSTATUS -1 jpayne@69: # define OCSP_REVOKED_STATUS_UNSPECIFIED 0 jpayne@69: # define OCSP_REVOKED_STATUS_KEYCOMPROMISE 1 jpayne@69: # define OCSP_REVOKED_STATUS_CACOMPROMISE 2 jpayne@69: # define OCSP_REVOKED_STATUS_AFFILIATIONCHANGED 3 jpayne@69: # define OCSP_REVOKED_STATUS_SUPERSEDED 4 jpayne@69: # define OCSP_REVOKED_STATUS_CESSATIONOFOPERATION 5 jpayne@69: # define OCSP_REVOKED_STATUS_CERTIFICATEHOLD 6 jpayne@69: # define OCSP_REVOKED_STATUS_REMOVEFROMCRL 8 jpayne@69: jpayne@69: jpayne@69: # ifndef OPENSSL_NO_OCSP jpayne@69: jpayne@69: # include jpayne@69: # include jpayne@69: # include jpayne@69: # include jpayne@69: # include jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: /* Various flags and values */ jpayne@69: jpayne@69: # define OCSP_DEFAULT_NONCE_LENGTH 16 jpayne@69: jpayne@69: # define OCSP_NOCERTS 0x1 jpayne@69: # define OCSP_NOINTERN 0x2 jpayne@69: # define OCSP_NOSIGS 0x4 jpayne@69: # define OCSP_NOCHAIN 0x8 jpayne@69: # define OCSP_NOVERIFY 0x10 jpayne@69: # define OCSP_NOEXPLICIT 0x20 jpayne@69: # define OCSP_NOCASIGN 0x40 jpayne@69: # define OCSP_NODELEGATED 0x80 jpayne@69: # define OCSP_NOCHECKS 0x100 jpayne@69: # define OCSP_TRUSTOTHER 0x200 jpayne@69: # define OCSP_RESPID_KEY 0x400 jpayne@69: # define OCSP_NOTIME 0x800 jpayne@69: jpayne@69: typedef struct ocsp_cert_id_st OCSP_CERTID; jpayne@69: jpayne@69: DEFINE_STACK_OF(OCSP_CERTID) jpayne@69: jpayne@69: typedef struct ocsp_one_request_st OCSP_ONEREQ; jpayne@69: jpayne@69: DEFINE_STACK_OF(OCSP_ONEREQ) jpayne@69: jpayne@69: typedef struct ocsp_req_info_st OCSP_REQINFO; jpayne@69: typedef struct ocsp_signature_st OCSP_SIGNATURE; jpayne@69: typedef struct ocsp_request_st OCSP_REQUEST; jpayne@69: jpayne@69: # define OCSP_RESPONSE_STATUS_SUCCESSFUL 0 jpayne@69: # define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST 1 jpayne@69: # define OCSP_RESPONSE_STATUS_INTERNALERROR 2 jpayne@69: # define OCSP_RESPONSE_STATUS_TRYLATER 3 jpayne@69: # define OCSP_RESPONSE_STATUS_SIGREQUIRED 5 jpayne@69: # define OCSP_RESPONSE_STATUS_UNAUTHORIZED 6 jpayne@69: jpayne@69: typedef struct ocsp_resp_bytes_st OCSP_RESPBYTES; jpayne@69: jpayne@69: # define V_OCSP_RESPID_NAME 0 jpayne@69: # define V_OCSP_RESPID_KEY 1 jpayne@69: jpayne@69: DEFINE_STACK_OF(OCSP_RESPID) jpayne@69: jpayne@69: typedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO; jpayne@69: jpayne@69: # define V_OCSP_CERTSTATUS_GOOD 0 jpayne@69: # define V_OCSP_CERTSTATUS_REVOKED 1 jpayne@69: # define V_OCSP_CERTSTATUS_UNKNOWN 2 jpayne@69: jpayne@69: typedef struct ocsp_cert_status_st OCSP_CERTSTATUS; jpayne@69: typedef struct ocsp_single_response_st OCSP_SINGLERESP; jpayne@69: jpayne@69: DEFINE_STACK_OF(OCSP_SINGLERESP) jpayne@69: jpayne@69: typedef struct ocsp_response_data_st OCSP_RESPDATA; jpayne@69: jpayne@69: typedef struct ocsp_basic_response_st OCSP_BASICRESP; jpayne@69: jpayne@69: typedef struct ocsp_crl_id_st OCSP_CRLID; jpayne@69: typedef struct ocsp_service_locator_st OCSP_SERVICELOC; jpayne@69: jpayne@69: # define PEM_STRING_OCSP_REQUEST "OCSP REQUEST" jpayne@69: # define PEM_STRING_OCSP_RESPONSE "OCSP RESPONSE" jpayne@69: jpayne@69: # define d2i_OCSP_REQUEST_bio(bp,p) ASN1_d2i_bio_of(OCSP_REQUEST,OCSP_REQUEST_new,d2i_OCSP_REQUEST,bp,p) jpayne@69: jpayne@69: # define d2i_OCSP_RESPONSE_bio(bp,p) ASN1_d2i_bio_of(OCSP_RESPONSE,OCSP_RESPONSE_new,d2i_OCSP_RESPONSE,bp,p) jpayne@69: jpayne@69: # define PEM_read_bio_OCSP_REQUEST(bp,x,cb) (OCSP_REQUEST *)PEM_ASN1_read_bio( \ jpayne@69: (char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST, \ jpayne@69: bp,(char **)(x),cb,NULL) jpayne@69: jpayne@69: # define PEM_read_bio_OCSP_RESPONSE(bp,x,cb) (OCSP_RESPONSE *)PEM_ASN1_read_bio(\ jpayne@69: (char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE, \ jpayne@69: bp,(char **)(x),cb,NULL) jpayne@69: jpayne@69: # define PEM_write_bio_OCSP_REQUEST(bp,o) \ jpayne@69: PEM_ASN1_write_bio((int (*)())i2d_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,\ jpayne@69: bp,(char *)(o), NULL,NULL,0,NULL,NULL) jpayne@69: jpayne@69: # define PEM_write_bio_OCSP_RESPONSE(bp,o) \ jpayne@69: PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\ jpayne@69: bp,(char *)(o), NULL,NULL,0,NULL,NULL) jpayne@69: jpayne@69: # define i2d_OCSP_RESPONSE_bio(bp,o) ASN1_i2d_bio_of(OCSP_RESPONSE,i2d_OCSP_RESPONSE,bp,o) jpayne@69: jpayne@69: # define i2d_OCSP_REQUEST_bio(bp,o) ASN1_i2d_bio_of(OCSP_REQUEST,i2d_OCSP_REQUEST,bp,o) jpayne@69: jpayne@69: # define ASN1_BIT_STRING_digest(data,type,md,len) \ jpayne@69: ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len) jpayne@69: jpayne@69: # define OCSP_CERTSTATUS_dup(cs)\ jpayne@69: (OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\ jpayne@69: (char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs)) jpayne@69: jpayne@69: OCSP_CERTID *OCSP_CERTID_dup(OCSP_CERTID *id); jpayne@69: jpayne@69: OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req); jpayne@69: OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req, jpayne@69: int maxline); jpayne@69: int OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx); jpayne@69: int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx); jpayne@69: OCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline); jpayne@69: void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx); jpayne@69: void OCSP_set_max_response_length(OCSP_REQ_CTX *rctx, unsigned long len); jpayne@69: int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it, jpayne@69: ASN1_VALUE *val); jpayne@69: int OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval, jpayne@69: const ASN1_ITEM *it); jpayne@69: BIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx); jpayne@69: int OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path); jpayne@69: int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req); jpayne@69: int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx, jpayne@69: const char *name, const char *value); jpayne@69: jpayne@69: OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject, jpayne@69: const X509 *issuer); jpayne@69: jpayne@69: OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, jpayne@69: const X509_NAME *issuerName, jpayne@69: const ASN1_BIT_STRING *issuerKey, jpayne@69: const ASN1_INTEGER *serialNumber); jpayne@69: jpayne@69: OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid); jpayne@69: jpayne@69: int OCSP_request_add1_nonce(OCSP_REQUEST *req, unsigned char *val, int len); jpayne@69: int OCSP_basic_add1_nonce(OCSP_BASICRESP *resp, unsigned char *val, int len); jpayne@69: int OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs); jpayne@69: int OCSP_copy_nonce(OCSP_BASICRESP *resp, OCSP_REQUEST *req); jpayne@69: jpayne@69: int OCSP_request_set1_name(OCSP_REQUEST *req, X509_NAME *nm); jpayne@69: int OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert); jpayne@69: jpayne@69: int OCSP_request_sign(OCSP_REQUEST *req, jpayne@69: X509 *signer, jpayne@69: EVP_PKEY *key, jpayne@69: const EVP_MD *dgst, jpayne@69: STACK_OF(X509) *certs, unsigned long flags); jpayne@69: jpayne@69: int OCSP_response_status(OCSP_RESPONSE *resp); jpayne@69: OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp); jpayne@69: jpayne@69: const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs); jpayne@69: const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs); jpayne@69: const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs); jpayne@69: int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer, jpayne@69: STACK_OF(X509) *extra_certs); jpayne@69: jpayne@69: int OCSP_resp_count(OCSP_BASICRESP *bs); jpayne@69: OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx); jpayne@69: const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP* bs); jpayne@69: const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs); jpayne@69: int OCSP_resp_get0_id(const OCSP_BASICRESP *bs, jpayne@69: const ASN1_OCTET_STRING **pid, jpayne@69: const X509_NAME **pname); jpayne@69: int OCSP_resp_get1_id(const OCSP_BASICRESP *bs, jpayne@69: ASN1_OCTET_STRING **pid, jpayne@69: X509_NAME **pname); jpayne@69: jpayne@69: int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last); jpayne@69: int OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason, jpayne@69: ASN1_GENERALIZEDTIME **revtime, jpayne@69: ASN1_GENERALIZEDTIME **thisupd, jpayne@69: ASN1_GENERALIZEDTIME **nextupd); jpayne@69: int OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status, jpayne@69: int *reason, jpayne@69: ASN1_GENERALIZEDTIME **revtime, jpayne@69: ASN1_GENERALIZEDTIME **thisupd, jpayne@69: ASN1_GENERALIZEDTIME **nextupd); jpayne@69: int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd, jpayne@69: ASN1_GENERALIZEDTIME *nextupd, long sec, long maxsec); jpayne@69: jpayne@69: int OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs, jpayne@69: X509_STORE *store, unsigned long flags); jpayne@69: jpayne@69: int OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath, jpayne@69: int *pssl); jpayne@69: jpayne@69: int OCSP_id_issuer_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b); jpayne@69: int OCSP_id_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b); jpayne@69: jpayne@69: int OCSP_request_onereq_count(OCSP_REQUEST *req); jpayne@69: OCSP_ONEREQ *OCSP_request_onereq_get0(OCSP_REQUEST *req, int i); jpayne@69: OCSP_CERTID *OCSP_onereq_get0_id(OCSP_ONEREQ *one); jpayne@69: int OCSP_id_get0_info(ASN1_OCTET_STRING **piNameHash, ASN1_OBJECT **pmd, jpayne@69: ASN1_OCTET_STRING **pikeyHash, jpayne@69: ASN1_INTEGER **pserial, OCSP_CERTID *cid); jpayne@69: int OCSP_request_is_signed(OCSP_REQUEST *req); jpayne@69: OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs); jpayne@69: OCSP_SINGLERESP *OCSP_basic_add1_status(OCSP_BASICRESP *rsp, jpayne@69: OCSP_CERTID *cid, jpayne@69: int status, int reason, jpayne@69: ASN1_TIME *revtime, jpayne@69: ASN1_TIME *thisupd, jpayne@69: ASN1_TIME *nextupd); jpayne@69: int OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert); jpayne@69: int OCSP_basic_sign(OCSP_BASICRESP *brsp, jpayne@69: X509 *signer, EVP_PKEY *key, const EVP_MD *dgst, jpayne@69: STACK_OF(X509) *certs, unsigned long flags); jpayne@69: int OCSP_basic_sign_ctx(OCSP_BASICRESP *brsp, jpayne@69: X509 *signer, EVP_MD_CTX *ctx, jpayne@69: STACK_OF(X509) *certs, unsigned long flags); jpayne@69: int OCSP_RESPID_set_by_name(OCSP_RESPID *respid, X509 *cert); jpayne@69: int OCSP_RESPID_set_by_key(OCSP_RESPID *respid, X509 *cert); jpayne@69: int OCSP_RESPID_match(OCSP_RESPID *respid, X509 *cert); jpayne@69: jpayne@69: X509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim); jpayne@69: jpayne@69: X509_EXTENSION *OCSP_accept_responses_new(char **oids); jpayne@69: jpayne@69: X509_EXTENSION *OCSP_archive_cutoff_new(char *tim); jpayne@69: jpayne@69: X509_EXTENSION *OCSP_url_svcloc_new(X509_NAME *issuer, const char **urls); jpayne@69: jpayne@69: int OCSP_REQUEST_get_ext_count(OCSP_REQUEST *x); jpayne@69: int OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos); jpayne@69: int OCSP_REQUEST_get_ext_by_OBJ(OCSP_REQUEST *x, const ASN1_OBJECT *obj, jpayne@69: int lastpos); jpayne@69: int OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos); jpayne@69: X509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc); jpayne@69: X509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc); jpayne@69: void *OCSP_REQUEST_get1_ext_d2i(OCSP_REQUEST *x, int nid, int *crit, jpayne@69: int *idx); jpayne@69: int OCSP_REQUEST_add1_ext_i2d(OCSP_REQUEST *x, int nid, void *value, int crit, jpayne@69: unsigned long flags); jpayne@69: int OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc); jpayne@69: jpayne@69: int OCSP_ONEREQ_get_ext_count(OCSP_ONEREQ *x); jpayne@69: int OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos); jpayne@69: int OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj, int lastpos); jpayne@69: int OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos); jpayne@69: X509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc); jpayne@69: X509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc); jpayne@69: void *OCSP_ONEREQ_get1_ext_d2i(OCSP_ONEREQ *x, int nid, int *crit, int *idx); jpayne@69: int OCSP_ONEREQ_add1_ext_i2d(OCSP_ONEREQ *x, int nid, void *value, int crit, jpayne@69: unsigned long flags); jpayne@69: int OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc); jpayne@69: jpayne@69: int OCSP_BASICRESP_get_ext_count(OCSP_BASICRESP *x); jpayne@69: int OCSP_BASICRESP_get_ext_by_NID(OCSP_BASICRESP *x, int nid, int lastpos); jpayne@69: int OCSP_BASICRESP_get_ext_by_OBJ(OCSP_BASICRESP *x, const ASN1_OBJECT *obj, jpayne@69: int lastpos); jpayne@69: int OCSP_BASICRESP_get_ext_by_critical(OCSP_BASICRESP *x, int crit, jpayne@69: int lastpos); jpayne@69: X509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc); jpayne@69: X509_EXTENSION *OCSP_BASICRESP_delete_ext(OCSP_BASICRESP *x, int loc); jpayne@69: void *OCSP_BASICRESP_get1_ext_d2i(OCSP_BASICRESP *x, int nid, int *crit, jpayne@69: int *idx); jpayne@69: int OCSP_BASICRESP_add1_ext_i2d(OCSP_BASICRESP *x, int nid, void *value, jpayne@69: int crit, unsigned long flags); jpayne@69: int OCSP_BASICRESP_add_ext(OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc); jpayne@69: jpayne@69: int OCSP_SINGLERESP_get_ext_count(OCSP_SINGLERESP *x); jpayne@69: int OCSP_SINGLERESP_get_ext_by_NID(OCSP_SINGLERESP *x, int nid, int lastpos); jpayne@69: int OCSP_SINGLERESP_get_ext_by_OBJ(OCSP_SINGLERESP *x, const ASN1_OBJECT *obj, jpayne@69: int lastpos); jpayne@69: int OCSP_SINGLERESP_get_ext_by_critical(OCSP_SINGLERESP *x, int crit, jpayne@69: int lastpos); jpayne@69: X509_EXTENSION *OCSP_SINGLERESP_get_ext(OCSP_SINGLERESP *x, int loc); jpayne@69: X509_EXTENSION *OCSP_SINGLERESP_delete_ext(OCSP_SINGLERESP *x, int loc); jpayne@69: void *OCSP_SINGLERESP_get1_ext_d2i(OCSP_SINGLERESP *x, int nid, int *crit, jpayne@69: int *idx); jpayne@69: int OCSP_SINGLERESP_add1_ext_i2d(OCSP_SINGLERESP *x, int nid, void *value, jpayne@69: int crit, unsigned long flags); jpayne@69: int OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, int loc); jpayne@69: const OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *x); jpayne@69: jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_SINGLERESP) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_CERTSTATUS) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_REVOKEDINFO) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_BASICRESP) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_RESPDATA) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_RESPID) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_RESPBYTES) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_ONEREQ) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_CERTID) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_REQUEST) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_SIGNATURE) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_REQINFO) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_CRLID) jpayne@69: DECLARE_ASN1_FUNCTIONS(OCSP_SERVICELOC) jpayne@69: jpayne@69: const char *OCSP_response_status_str(long s); jpayne@69: const char *OCSP_cert_status_str(long s); jpayne@69: const char *OCSP_crl_reason_str(long s); jpayne@69: jpayne@69: int OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST *a, unsigned long flags); jpayne@69: int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags); jpayne@69: jpayne@69: int OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs, jpayne@69: X509_STORE *st, unsigned long flags); jpayne@69: jpayne@69: jpayne@69: # ifdef __cplusplus jpayne@69: } jpayne@69: # endif jpayne@69: # endif jpayne@69: #endif