OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
ocsp.h File Reference
#include <openssl/ossl_typ.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/safestack.h>

Go to the source code of this file.

Classes

struct  ocsp_cert_id_st
 
struct  ocsp_one_request_st
 
struct  ocsp_req_info_st
 
struct  ocsp_signature_st
 
struct  ocsp_request_st
 
struct  ocsp_resp_bytes_st
 
struct  ocsp_response_st
 
struct  ocsp_responder_id_st
 
struct  ocsp_revoked_info_st
 
struct  ocsp_cert_status_st
 
struct  ocsp_single_response_st
 
struct  ocsp_response_data_st
 
struct  ocsp_basic_response_st
 
struct  ocsp_crl_id_st
 
struct  ocsp_service_locator_st
 

Macros

#define OCSP_DEFAULT_NONCE_LENGTH   16
 
#define OCSP_NOCERTS   0x1
 
#define OCSP_NOINTERN   0x2
 
#define OCSP_NOSIGS   0x4
 
#define OCSP_NOCHAIN   0x8
 
#define OCSP_NOVERIFY   0x10
 
#define OCSP_NOEXPLICIT   0x20
 
#define OCSP_NOCASIGN   0x40
 
#define OCSP_NODELEGATED   0x80
 
#define OCSP_NOCHECKS   0x100
 
#define OCSP_TRUSTOTHER   0x200
 
#define OCSP_RESPID_KEY   0x400
 
#define OCSP_NOTIME   0x800
 
#define OCSP_RESPONSE_STATUS_SUCCESSFUL   0
 
#define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST   1
 
#define OCSP_RESPONSE_STATUS_INTERNALERROR   2
 
#define OCSP_RESPONSE_STATUS_TRYLATER   3
 
#define OCSP_RESPONSE_STATUS_SIGREQUIRED   5
 
#define OCSP_RESPONSE_STATUS_UNAUTHORIZED   6
 
#define V_OCSP_RESPID_NAME   0
 
#define V_OCSP_RESPID_KEY   1
 
#define V_OCSP_CERTSTATUS_GOOD   0
 
#define V_OCSP_CERTSTATUS_REVOKED   1
 
#define V_OCSP_CERTSTATUS_UNKNOWN   2
 
#define OCSP_REVOKED_STATUS_NOSTATUS   -1
 
#define OCSP_REVOKED_STATUS_UNSPECIFIED   0
 
#define OCSP_REVOKED_STATUS_KEYCOMPROMISE   1
 
#define OCSP_REVOKED_STATUS_CACOMPROMISE   2
 
#define OCSP_REVOKED_STATUS_AFFILIATIONCHANGED   3
 
#define OCSP_REVOKED_STATUS_SUPERSEDED   4
 
#define OCSP_REVOKED_STATUS_CESSATIONOFOPERATION   5
 
#define OCSP_REVOKED_STATUS_CERTIFICATEHOLD   6
 
#define OCSP_REVOKED_STATUS_REMOVEFROMCRL   8
 
#define PEM_STRING_OCSP_REQUEST   "OCSP REQUEST"
 
#define PEM_STRING_OCSP_RESPONSE   "OCSP RESPONSE"
 
#define d2i_OCSP_REQUEST_bio(bp, p)   ASN1_d2i_bio_of(OCSP_REQUEST,OCSP_REQUEST_new,d2i_OCSP_REQUEST,bp,p)
 
#define d2i_OCSP_RESPONSE_bio(bp, p)   ASN1_d2i_bio_of(OCSP_RESPONSE,OCSP_RESPONSE_new,d2i_OCSP_RESPONSE,bp,p)
 
#define PEM_read_bio_OCSP_REQUEST(bp, x, cb)
 
#define PEM_read_bio_OCSP_RESPONSE(bp, x, cb)
 
#define PEM_write_bio_OCSP_REQUEST(bp, o)
 
#define PEM_write_bio_OCSP_RESPONSE(bp, o)
 
#define i2d_OCSP_RESPONSE_bio(bp, o)   ASN1_i2d_bio_of(OCSP_RESPONSE,i2d_OCSP_RESPONSE,bp,o)
 
#define i2d_OCSP_REQUEST_bio(bp, o)   ASN1_i2d_bio_of(OCSP_REQUEST,i2d_OCSP_REQUEST,bp,o)
 
#define OCSP_REQUEST_sign(o, pkey, md)
 
#define OCSP_BASICRESP_sign(o, pkey, md, d)
 
#define OCSP_REQUEST_verify(a, r)
 
#define OCSP_BASICRESP_verify(a, r, d)
 
#define ASN1_BIT_STRING_digest(data, type, md, len)   ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len)
 
#define OCSP_CERTSTATUS_dup(cs)
 
#define OCSP_F_ASN1_STRING_ENCODE   100
 
#define OCSP_F_D2I_OCSP_NONCE   102
 
#define OCSP_F_OCSP_BASIC_ADD1_STATUS   103
 
#define OCSP_F_OCSP_BASIC_SIGN   104
 
#define OCSP_F_OCSP_BASIC_VERIFY   105
 
#define OCSP_F_OCSP_CERT_ID_NEW   101
 
#define OCSP_F_OCSP_CHECK_DELEGATED   106
 
#define OCSP_F_OCSP_CHECK_IDS   107
 
#define OCSP_F_OCSP_CHECK_ISSUER   108
 
#define OCSP_F_OCSP_CHECK_VALIDITY   115
 
#define OCSP_F_OCSP_MATCH_ISSUERID   109
 
#define OCSP_F_OCSP_PARSE_URL   114
 
#define OCSP_F_OCSP_REQUEST_SIGN   110
 
#define OCSP_F_OCSP_REQUEST_VERIFY   116
 
#define OCSP_F_OCSP_RESPONSE_GET1_BASIC   111
 
#define OCSP_F_OCSP_SENDREQ_BIO   112
 
#define OCSP_F_OCSP_SENDREQ_NBIO   117
 
#define OCSP_F_PARSE_HTTP_LINE1   118
 
#define OCSP_F_REQUEST_VERIFY   113
 
#define OCSP_R_BAD_DATA   100
 
#define OCSP_R_CERTIFICATE_VERIFY_ERROR   101
 
#define OCSP_R_DIGEST_ERR   102
 
#define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD   122
 
#define OCSP_R_ERROR_IN_THISUPDATE_FIELD   123
 
#define OCSP_R_ERROR_PARSING_URL   121
 
#define OCSP_R_MISSING_OCSPSIGNING_USAGE   103
 
#define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE   124
 
#define OCSP_R_NOT_BASIC_RESPONSE   104
 
#define OCSP_R_NO_CERTIFICATES_IN_CHAIN   105
 
#define OCSP_R_NO_CONTENT   106
 
#define OCSP_R_NO_PUBLIC_KEY   107
 
#define OCSP_R_NO_RESPONSE_DATA   108
 
#define OCSP_R_NO_REVOKED_TIME   109
 
#define OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE   110
 
#define OCSP_R_REQUEST_NOT_SIGNED   128
 
#define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA   111
 
#define OCSP_R_ROOT_CA_NOT_TRUSTED   112
 
#define OCSP_R_SERVER_READ_ERROR   113
 
#define OCSP_R_SERVER_RESPONSE_ERROR   114
 
#define OCSP_R_SERVER_RESPONSE_PARSE_ERROR   115
 
#define OCSP_R_SERVER_WRITE_ERROR   116
 
#define OCSP_R_SIGNATURE_FAILURE   117
 
#define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND   118
 
#define OCSP_R_STATUS_EXPIRED   125
 
#define OCSP_R_STATUS_NOT_YET_VALID   126
 
#define OCSP_R_STATUS_TOO_OLD   127
 
#define OCSP_R_UNKNOWN_MESSAGE_DIGEST   119
 
#define OCSP_R_UNKNOWN_NID   120
 
#define OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE   129
 

Typedefs

typedef struct ocsp_cert_id_st OCSP_CERTID
 
typedef struct ocsp_one_request_st OCSP_ONEREQ
 
typedef struct ocsp_req_info_st OCSP_REQINFO
 
typedef struct ocsp_signature_st OCSP_SIGNATURE
 
typedef struct ocsp_request_st OCSP_REQUEST
 
typedef struct ocsp_resp_bytes_st OCSP_RESPBYTES
 
typedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO
 
typedef struct ocsp_cert_status_st OCSP_CERTSTATUS
 
typedef struct
ocsp_single_response_st 
OCSP_SINGLERESP
 
typedef struct
ocsp_response_data_st 
OCSP_RESPDATA
 
typedef struct
ocsp_basic_response_st 
OCSP_BASICRESP
 
typedef struct ocsp_crl_id_st OCSP_CRLID
 
typedef struct
ocsp_service_locator_st 
OCSP_SERVICELOC
 

Functions

OCSP_CERTIDOCSP_CERTID_dup (OCSP_CERTID *id)
 
OCSP_RESPONSEOCSP_sendreq_bio (BIO *b, char *path, OCSP_REQUEST *req)
 
OCSP_REQ_CTXOCSP_sendreq_new (BIO *io, char *path, OCSP_REQUEST *req, int maxline)
 
int OCSP_sendreq_nbio (OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx)
 
void OCSP_REQ_CTX_free (OCSP_REQ_CTX *rctx)
 
int OCSP_REQ_CTX_set1_req (OCSP_REQ_CTX *rctx, OCSP_REQUEST *req)
 
int OCSP_REQ_CTX_add1_header (OCSP_REQ_CTX *rctx, const char *name, const char *value)
 
OCSP_CERTIDOCSP_cert_to_id (const EVP_MD *dgst, X509 *subject, X509 *issuer)
 
OCSP_CERTIDOCSP_cert_id_new (const EVP_MD *dgst, X509_NAME *issuerName, ASN1_BIT_STRING *issuerKey, ASN1_INTEGER *serialNumber)
 
OCSP_ONEREQOCSP_request_add0_id (OCSP_REQUEST *req, OCSP_CERTID *cid)
 
int OCSP_request_add1_nonce (OCSP_REQUEST *req, unsigned char *val, int len)
 
int OCSP_basic_add1_nonce (OCSP_BASICRESP *resp, unsigned char *val, int len)
 
int OCSP_check_nonce (OCSP_REQUEST *req, OCSP_BASICRESP *bs)
 
int OCSP_copy_nonce (OCSP_BASICRESP *resp, OCSP_REQUEST *req)
 
int OCSP_request_set1_name (OCSP_REQUEST *req, X509_NAME *nm)
 
int OCSP_request_add1_cert (OCSP_REQUEST *req, X509 *cert)
 
int OCSP_request_sign (OCSP_REQUEST *req, X509 *signer, EVP_PKEY *key, const EVP_MD *dgst, STACK_OF(X509)*certs, unsigned long flags)
 
int OCSP_response_status (OCSP_RESPONSE *resp)
 
OCSP_BASICRESPOCSP_response_get1_basic (OCSP_RESPONSE *resp)
 
int OCSP_resp_count (OCSP_BASICRESP *bs)
 
OCSP_SINGLERESPOCSP_resp_get0 (OCSP_BASICRESP *bs, int idx)
 
int OCSP_resp_find (OCSP_BASICRESP *bs, OCSP_CERTID *id, int last)
 
int OCSP_single_get0_status (OCSP_SINGLERESP *single, int *reason, ASN1_GENERALIZEDTIME **revtime, ASN1_GENERALIZEDTIME **thisupd, ASN1_GENERALIZEDTIME **nextupd)
 
int OCSP_resp_find_status (OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status, int *reason, ASN1_GENERALIZEDTIME **revtime, ASN1_GENERALIZEDTIME **thisupd, ASN1_GENERALIZEDTIME **nextupd)
 
int OCSP_check_validity (ASN1_GENERALIZEDTIME *thisupd, ASN1_GENERALIZEDTIME *nextupd, long sec, long maxsec)
 
int OCSP_request_verify (OCSP_REQUEST *req, STACK_OF(X509)*certs, X509_STORE *store, unsigned long flags)
 
int OCSP_parse_url (char *url, char **phost, char **pport, char **ppath, int *pssl)
 
int OCSP_id_issuer_cmp (OCSP_CERTID *a, OCSP_CERTID *b)
 
int OCSP_id_cmp (OCSP_CERTID *a, OCSP_CERTID *b)
 
int OCSP_request_onereq_count (OCSP_REQUEST *req)
 
OCSP_ONEREQOCSP_request_onereq_get0 (OCSP_REQUEST *req, int i)
 
OCSP_CERTIDOCSP_onereq_get0_id (OCSP_ONEREQ *one)
 
int OCSP_id_get0_info (ASN1_OCTET_STRING **piNameHash, ASN1_OBJECT **pmd, ASN1_OCTET_STRING **pikeyHash, ASN1_INTEGER **pserial, OCSP_CERTID *cid)
 
int OCSP_request_is_signed (OCSP_REQUEST *req)
 
OCSP_RESPONSEOCSP_response_create (int status, OCSP_BASICRESP *bs)
 
OCSP_SINGLERESPOCSP_basic_add1_status (OCSP_BASICRESP *rsp, OCSP_CERTID *cid, int status, int reason, ASN1_TIME *revtime, ASN1_TIME *thisupd, ASN1_TIME *nextupd)
 
int OCSP_basic_add1_cert (OCSP_BASICRESP *resp, X509 *cert)
 
int OCSP_basic_sign (OCSP_BASICRESP *brsp, X509 *signer, EVP_PKEY *key, const EVP_MD *dgst, STACK_OF(X509)*certs, unsigned long flags)
 
X509_EXTENSIONOCSP_crlID_new (char *url, long *n, char *tim)
 
X509_EXTENSIONOCSP_accept_responses_new (char **oids)
 
X509_EXTENSIONOCSP_archive_cutoff_new (char *tim)
 
X509_EXTENSIONOCSP_url_svcloc_new (X509_NAME *issuer, char **urls)
 
int OCSP_REQUEST_get_ext_count (OCSP_REQUEST *x)
 
int OCSP_REQUEST_get_ext_by_NID (OCSP_REQUEST *x, int nid, int lastpos)
 
int OCSP_REQUEST_get_ext_by_OBJ (OCSP_REQUEST *x, ASN1_OBJECT *obj, int lastpos)
 
int OCSP_REQUEST_get_ext_by_critical (OCSP_REQUEST *x, int crit, int lastpos)
 
X509_EXTENSIONOCSP_REQUEST_get_ext (OCSP_REQUEST *x, int loc)
 
X509_EXTENSIONOCSP_REQUEST_delete_ext (OCSP_REQUEST *x, int loc)
 
voidOCSP_REQUEST_get1_ext_d2i (OCSP_REQUEST *x, int nid, int *crit, int *idx)
 
int OCSP_REQUEST_add1_ext_i2d (OCSP_REQUEST *x, int nid, void *value, int crit, unsigned long flags)
 
int OCSP_REQUEST_add_ext (OCSP_REQUEST *x, X509_EXTENSION *ex, int loc)
 
int OCSP_ONEREQ_get_ext_count (OCSP_ONEREQ *x)
 
int OCSP_ONEREQ_get_ext_by_NID (OCSP_ONEREQ *x, int nid, int lastpos)
 
int OCSP_ONEREQ_get_ext_by_OBJ (OCSP_ONEREQ *x, ASN1_OBJECT *obj, int lastpos)
 
int OCSP_ONEREQ_get_ext_by_critical (OCSP_ONEREQ *x, int crit, int lastpos)
 
X509_EXTENSIONOCSP_ONEREQ_get_ext (OCSP_ONEREQ *x, int loc)
 
X509_EXTENSIONOCSP_ONEREQ_delete_ext (OCSP_ONEREQ *x, int loc)
 
voidOCSP_ONEREQ_get1_ext_d2i (OCSP_ONEREQ *x, int nid, int *crit, int *idx)
 
int OCSP_ONEREQ_add1_ext_i2d (OCSP_ONEREQ *x, int nid, void *value, int crit, unsigned long flags)
 
int OCSP_ONEREQ_add_ext (OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc)
 
int OCSP_BASICRESP_get_ext_count (OCSP_BASICRESP *x)
 
int OCSP_BASICRESP_get_ext_by_NID (OCSP_BASICRESP *x, int nid, int lastpos)
 
int OCSP_BASICRESP_get_ext_by_OBJ (OCSP_BASICRESP *x, ASN1_OBJECT *obj, int lastpos)
 
int OCSP_BASICRESP_get_ext_by_critical (OCSP_BASICRESP *x, int crit, int lastpos)
 
X509_EXTENSIONOCSP_BASICRESP_get_ext (OCSP_BASICRESP *x, int loc)
 
X509_EXTENSIONOCSP_BASICRESP_delete_ext (OCSP_BASICRESP *x, int loc)
 
voidOCSP_BASICRESP_get1_ext_d2i (OCSP_BASICRESP *x, int nid, int *crit, int *idx)
 
int OCSP_BASICRESP_add1_ext_i2d (OCSP_BASICRESP *x, int nid, void *value, int crit, unsigned long flags)
 
int OCSP_BASICRESP_add_ext (OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc)
 
int OCSP_SINGLERESP_get_ext_count (OCSP_SINGLERESP *x)
 
int OCSP_SINGLERESP_get_ext_by_NID (OCSP_SINGLERESP *x, int nid, int lastpos)
 
int OCSP_SINGLERESP_get_ext_by_OBJ (OCSP_SINGLERESP *x, ASN1_OBJECT *obj, int lastpos)
 
int OCSP_SINGLERESP_get_ext_by_critical (OCSP_SINGLERESP *x, int crit, int lastpos)
 
X509_EXTENSIONOCSP_SINGLERESP_get_ext (OCSP_SINGLERESP *x, int loc)
 
X509_EXTENSIONOCSP_SINGLERESP_delete_ext (OCSP_SINGLERESP *x, int loc)
 
voidOCSP_SINGLERESP_get1_ext_d2i (OCSP_SINGLERESP *x, int nid, int *crit, int *idx)
 
int OCSP_SINGLERESP_add1_ext_i2d (OCSP_SINGLERESP *x, int nid, void *value, int crit, unsigned long flags)
 
int OCSP_SINGLERESP_add_ext (OCSP_SINGLERESP *x, X509_EXTENSION *ex, int loc)
 
const char * OCSP_response_status_str (long s)
 
const char * OCSP_cert_status_str (long s)
 
const char * OCSP_crl_reason_str (long s)
 
int OCSP_REQUEST_print (BIO *bp, OCSP_REQUEST *a, unsigned long flags)
 
int OCSP_RESPONSE_print (BIO *bp, OCSP_RESPONSE *o, unsigned long flags)
 
int OCSP_basic_verify (OCSP_BASICRESP *bs, STACK_OF(X509)*certs, X509_STORE *st, unsigned long flags)
 
void ERR_load_OCSP_strings (void)
 

Macro Definition Documentation

#define ASN1_BIT_STRING_digest (   data,
  type,
  md,
  len 
)    ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len)

Definition at line 395 of file ocsp.h.

#define d2i_OCSP_REQUEST_bio (   bp,
  p 
)    ASN1_d2i_bio_of(OCSP_REQUEST,OCSP_REQUEST_new,d2i_OCSP_REQUEST,bp,p)

Definition at line 357 of file ocsp.h.

#define d2i_OCSP_RESPONSE_bio (   bp,
  p 
)    ASN1_d2i_bio_of(OCSP_RESPONSE,OCSP_RESPONSE_new,d2i_OCSP_RESPONSE,bp,p)

Definition at line 359 of file ocsp.h.

#define i2d_OCSP_REQUEST_bio (   bp,
 
)    ASN1_i2d_bio_of(OCSP_REQUEST,i2d_OCSP_REQUEST,bp,o)

Definition at line 377 of file ocsp.h.

#define i2d_OCSP_RESPONSE_bio (   bp,
 
)    ASN1_i2d_bio_of(OCSP_RESPONSE,i2d_OCSP_RESPONSE,bp,o)

Definition at line 375 of file ocsp.h.

#define OCSP_BASICRESP_sign (   o,
  pkey,
  md,
 
)
Value:
ASN1_item_sign(ASN1_ITEM_rptr(OCSP_RESPDATA),o->signatureAlgorithm,NULL,\
o->signature,o->tbsResponseData,pkey,md)

Definition at line 384 of file ocsp.h.

#define OCSP_BASICRESP_verify (   a,
  r,
 
)
Value:
a->signatureAlgorithm,a->signature,a->tbsResponseData,r)

Definition at line 392 of file ocsp.h.

#define OCSP_CERTSTATUS_dup (   cs)
Value:
(OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\
(char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs))

Definition at line 398 of file ocsp.h.

#define OCSP_DEFAULT_NONCE_LENGTH   16

Definition at line 78 of file ocsp.h.

#define OCSP_F_ASN1_STRING_ENCODE   100

Definition at line 568 of file ocsp.h.

#define OCSP_F_D2I_OCSP_NONCE   102

Definition at line 569 of file ocsp.h.

#define OCSP_F_OCSP_BASIC_ADD1_STATUS   103

Definition at line 570 of file ocsp.h.

#define OCSP_F_OCSP_BASIC_SIGN   104

Definition at line 571 of file ocsp.h.

#define OCSP_F_OCSP_BASIC_VERIFY   105

Definition at line 572 of file ocsp.h.

#define OCSP_F_OCSP_CERT_ID_NEW   101

Definition at line 573 of file ocsp.h.

#define OCSP_F_OCSP_CHECK_DELEGATED   106

Definition at line 574 of file ocsp.h.

#define OCSP_F_OCSP_CHECK_IDS   107

Definition at line 575 of file ocsp.h.

#define OCSP_F_OCSP_CHECK_ISSUER   108

Definition at line 576 of file ocsp.h.

#define OCSP_F_OCSP_CHECK_VALIDITY   115

Definition at line 577 of file ocsp.h.

#define OCSP_F_OCSP_MATCH_ISSUERID   109

Definition at line 578 of file ocsp.h.

#define OCSP_F_OCSP_PARSE_URL   114

Definition at line 579 of file ocsp.h.

#define OCSP_F_OCSP_REQUEST_SIGN   110

Definition at line 580 of file ocsp.h.

#define OCSP_F_OCSP_REQUEST_VERIFY   116

Definition at line 581 of file ocsp.h.

#define OCSP_F_OCSP_RESPONSE_GET1_BASIC   111

Definition at line 582 of file ocsp.h.

#define OCSP_F_OCSP_SENDREQ_BIO   112

Definition at line 583 of file ocsp.h.

#define OCSP_F_OCSP_SENDREQ_NBIO   117

Definition at line 584 of file ocsp.h.

#define OCSP_F_PARSE_HTTP_LINE1   118

Definition at line 585 of file ocsp.h.

#define OCSP_F_REQUEST_VERIFY   113

Definition at line 586 of file ocsp.h.

#define OCSP_NOCASIGN   0x40

Definition at line 86 of file ocsp.h.

#define OCSP_NOCERTS   0x1

Definition at line 80 of file ocsp.h.

#define OCSP_NOCHAIN   0x8

Definition at line 83 of file ocsp.h.

#define OCSP_NOCHECKS   0x100

Definition at line 88 of file ocsp.h.

#define OCSP_NODELEGATED   0x80

Definition at line 87 of file ocsp.h.

#define OCSP_NOEXPLICIT   0x20

Definition at line 85 of file ocsp.h.

#define OCSP_NOINTERN   0x2

Definition at line 81 of file ocsp.h.

#define OCSP_NOSIGS   0x4

Definition at line 82 of file ocsp.h.

#define OCSP_NOTIME   0x800

Definition at line 91 of file ocsp.h.

#define OCSP_NOVERIFY   0x10

Definition at line 84 of file ocsp.h.

#define OCSP_R_BAD_DATA   100

Definition at line 589 of file ocsp.h.

#define OCSP_R_CERTIFICATE_VERIFY_ERROR   101

Definition at line 590 of file ocsp.h.

#define OCSP_R_DIGEST_ERR   102

Definition at line 591 of file ocsp.h.

#define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD   122

Definition at line 592 of file ocsp.h.

#define OCSP_R_ERROR_IN_THISUPDATE_FIELD   123

Definition at line 593 of file ocsp.h.

#define OCSP_R_ERROR_PARSING_URL   121

Definition at line 594 of file ocsp.h.

#define OCSP_R_MISSING_OCSPSIGNING_USAGE   103

Definition at line 595 of file ocsp.h.

#define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE   124

Definition at line 596 of file ocsp.h.

#define OCSP_R_NO_CERTIFICATES_IN_CHAIN   105

Definition at line 598 of file ocsp.h.

#define OCSP_R_NO_CONTENT   106

Definition at line 599 of file ocsp.h.

#define OCSP_R_NO_PUBLIC_KEY   107

Definition at line 600 of file ocsp.h.

#define OCSP_R_NO_RESPONSE_DATA   108

Definition at line 601 of file ocsp.h.

#define OCSP_R_NO_REVOKED_TIME   109

Definition at line 602 of file ocsp.h.

#define OCSP_R_NOT_BASIC_RESPONSE   104

Definition at line 597 of file ocsp.h.

#define OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE   110

Definition at line 603 of file ocsp.h.

#define OCSP_R_REQUEST_NOT_SIGNED   128

Definition at line 604 of file ocsp.h.

#define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA   111

Definition at line 605 of file ocsp.h.

#define OCSP_R_ROOT_CA_NOT_TRUSTED   112

Definition at line 606 of file ocsp.h.

#define OCSP_R_SERVER_READ_ERROR   113

Definition at line 607 of file ocsp.h.

#define OCSP_R_SERVER_RESPONSE_ERROR   114

Definition at line 608 of file ocsp.h.

#define OCSP_R_SERVER_RESPONSE_PARSE_ERROR   115

Definition at line 609 of file ocsp.h.

#define OCSP_R_SERVER_WRITE_ERROR   116

Definition at line 610 of file ocsp.h.

#define OCSP_R_SIGNATURE_FAILURE   117

Definition at line 611 of file ocsp.h.

#define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND   118

Definition at line 612 of file ocsp.h.

#define OCSP_R_STATUS_EXPIRED   125

Definition at line 613 of file ocsp.h.

#define OCSP_R_STATUS_NOT_YET_VALID   126

Definition at line 614 of file ocsp.h.

#define OCSP_R_STATUS_TOO_OLD   127

Definition at line 615 of file ocsp.h.

#define OCSP_R_UNKNOWN_MESSAGE_DIGEST   119

Definition at line 616 of file ocsp.h.

#define OCSP_R_UNKNOWN_NID   120

Definition at line 617 of file ocsp.h.

#define OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE   129

Definition at line 618 of file ocsp.h.

#define OCSP_REQUEST_sign (   o,
  pkey,
  md 
)
Value:
o->optionalSignature->signatureAlgorithm,NULL,\
o->optionalSignature->signature,o->tbsRequest,pkey,md)

Definition at line 379 of file ocsp.h.

#define OCSP_REQUEST_verify (   a,
 
)
Value:
a->optionalSignature->signatureAlgorithm,\
a->optionalSignature->signature,a->tbsRequest,r)

Definition at line 388 of file ocsp.h.

#define OCSP_RESPID_KEY   0x400

Definition at line 90 of file ocsp.h.

#define OCSP_RESPONSE_STATUS_INTERNALERROR   2

Definition at line 171 of file ocsp.h.

#define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST   1

Definition at line 170 of file ocsp.h.

#define OCSP_RESPONSE_STATUS_SIGREQUIRED   5

Definition at line 173 of file ocsp.h.

#define OCSP_RESPONSE_STATUS_SUCCESSFUL   0

Definition at line 169 of file ocsp.h.

#define OCSP_RESPONSE_STATUS_TRYLATER   3

Definition at line 172 of file ocsp.h.

#define OCSP_RESPONSE_STATUS_UNAUTHORIZED   6

Definition at line 174 of file ocsp.h.

#define OCSP_REVOKED_STATUS_AFFILIATIONCHANGED   3

Definition at line 326 of file ocsp.h.

#define OCSP_REVOKED_STATUS_CACOMPROMISE   2

Definition at line 325 of file ocsp.h.

#define OCSP_REVOKED_STATUS_CERTIFICATEHOLD   6

Definition at line 329 of file ocsp.h.

#define OCSP_REVOKED_STATUS_CESSATIONOFOPERATION   5

Definition at line 328 of file ocsp.h.

#define OCSP_REVOKED_STATUS_KEYCOMPROMISE   1

Definition at line 324 of file ocsp.h.

#define OCSP_REVOKED_STATUS_NOSTATUS   -1

Definition at line 322 of file ocsp.h.

#define OCSP_REVOKED_STATUS_REMOVEFROMCRL   8

Definition at line 330 of file ocsp.h.

#define OCSP_REVOKED_STATUS_SUPERSEDED   4

Definition at line 327 of file ocsp.h.

#define OCSP_REVOKED_STATUS_UNSPECIFIED   0

Definition at line 323 of file ocsp.h.

#define OCSP_TRUSTOTHER   0x200

Definition at line 89 of file ocsp.h.

#define PEM_read_bio_OCSP_REQUEST (   bp,
  x,
  cb 
)
Value:
(char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,bp,(char **)x,cb,NULL)

Definition at line 361 of file ocsp.h.

#define PEM_read_bio_OCSP_RESPONSE (   bp,
  x,
  cb 
)
Value:
(char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,bp,(char **)x,cb,NULL)

Definition at line 364 of file ocsp.h.

#define PEM_STRING_OCSP_REQUEST   "OCSP REQUEST"

Definition at line 354 of file ocsp.h.

#define PEM_STRING_OCSP_RESPONSE   "OCSP RESPONSE"

Definition at line 355 of file ocsp.h.

#define PEM_write_bio_OCSP_REQUEST (   bp,
 
)
Value:
PEM_ASN1_write_bio((int (*)())i2d_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,\
bp,(char *)o, NULL,NULL,0,NULL,NULL)

Definition at line 367 of file ocsp.h.

#define PEM_write_bio_OCSP_RESPONSE (   bp,
 
)
Value:
PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\
bp,(char *)o, NULL,NULL,0,NULL,NULL)

Definition at line 371 of file ocsp.h.

#define V_OCSP_CERTSTATUS_GOOD   0

Definition at line 233 of file ocsp.h.

#define V_OCSP_CERTSTATUS_REVOKED   1

Definition at line 234 of file ocsp.h.

#define V_OCSP_CERTSTATUS_UNKNOWN   2

Definition at line 235 of file ocsp.h.

#define V_OCSP_RESPID_KEY   1

Definition at line 201 of file ocsp.h.

#define V_OCSP_RESPID_NAME   0

Definition at line 200 of file ocsp.h.

Typedef Documentation

typedef struct ocsp_cert_id_st OCSP_CERTID
typedef struct ocsp_crl_id_st OCSP_CRLID
typedef struct ocsp_request_st OCSP_REQUEST

Function Documentation

void ERR_load_OCSP_strings ( void  )

Definition at line 132 of file ocsp_err.c.

X509_EXTENSION* OCSP_accept_responses_new ( char **  oids)

Definition at line 453 of file ocsp_ext.c.

X509_EXTENSION* OCSP_archive_cutoff_new ( char *  tim)

Definition at line 474 of file ocsp_ext.c.

int OCSP_basic_add1_cert ( OCSP_BASICRESP resp,
X509 cert 
)

Definition at line 198 of file ocsp_srv.c.

int OCSP_basic_add1_nonce ( OCSP_BASICRESP resp,
unsigned char *  val,
int  len 
)

Definition at line 359 of file ocsp_ext.c.

OCSP_SINGLERESP* OCSP_basic_add1_status ( OCSP_BASICRESP rsp,
OCSP_CERTID cid,
int  status,
int  reason,
ASN1_TIME revtime,
ASN1_TIME thisupd,
ASN1_TIME nextupd 
)

Definition at line 124 of file ocsp_srv.c.

int OCSP_basic_sign ( OCSP_BASICRESP brsp,
X509 signer,
EVP_PKEY key,
const EVP_MD dgst,
STACK_OF(X509)*  certs,
unsigned long  flags 
)

Definition at line 208 of file ocsp_srv.c.

int OCSP_basic_verify ( OCSP_BASICRESP bs,
STACK_OF(X509)*  certs,
X509_STORE st,
unsigned long  flags 
)

Definition at line 75 of file ocsp_vfy.c.

int OCSP_BASICRESP_add1_ext_i2d ( OCSP_BASICRESP x,
int  nid,
void value,
int  crit,
unsigned long  flags 
)

Definition at line 207 of file ocsp_ext.c.

int OCSP_BASICRESP_add_ext ( OCSP_BASICRESP x,
X509_EXTENSION ex,
int  loc 
)

Definition at line 213 of file ocsp_ext.c.

X509_EXTENSION* OCSP_BASICRESP_delete_ext ( OCSP_BASICRESP x,
int  loc 
)

Definition at line 197 of file ocsp_ext.c.

void* OCSP_BASICRESP_get1_ext_d2i ( OCSP_BASICRESP x,
int  nid,
int *  crit,
int *  idx 
)

Definition at line 202 of file ocsp_ext.c.

X509_EXTENSION* OCSP_BASICRESP_get_ext ( OCSP_BASICRESP x,
int  loc 
)

Definition at line 192 of file ocsp_ext.c.

int OCSP_BASICRESP_get_ext_by_critical ( OCSP_BASICRESP x,
int  crit,
int  lastpos 
)

Definition at line 187 of file ocsp_ext.c.

int OCSP_BASICRESP_get_ext_by_NID ( OCSP_BASICRESP x,
int  nid,
int  lastpos 
)

Definition at line 177 of file ocsp_ext.c.

int OCSP_BASICRESP_get_ext_by_OBJ ( OCSP_BASICRESP x,
ASN1_OBJECT obj,
int  lastpos 
)

Definition at line 182 of file ocsp_ext.c.

int OCSP_BASICRESP_get_ext_count ( OCSP_BASICRESP x)

Definition at line 172 of file ocsp_ext.c.

OCSP_CERTID* OCSP_cert_id_new ( const EVP_MD dgst,
X509_NAME issuerName,
ASN1_BIT_STRING issuerKey,
ASN1_INTEGER serialNumber 
)

Definition at line 99 of file ocsp_lib.c.

const char* OCSP_cert_status_str ( long  s)

Definition at line 112 of file ocsp_prn.c.

OCSP_CERTID* OCSP_cert_to_id ( const EVP_MD dgst,
X509 subject,
X509 issuer 
)

Definition at line 76 of file ocsp_lib.c.

OCSP_CERTID* OCSP_CERTID_dup ( OCSP_CERTID id)
int OCSP_check_nonce ( OCSP_REQUEST req,
OCSP_BASICRESP bs 
)

Definition at line 377 of file ocsp_ext.c.

int OCSP_check_validity ( ASN1_GENERALIZEDTIME thisupd,
ASN1_GENERALIZEDTIME nextupd,
long  sec,
long  maxsec 
)

Definition at line 312 of file ocsp_cl.c.

int OCSP_copy_nonce ( OCSP_BASICRESP resp,
OCSP_REQUEST req 
)

Definition at line 412 of file ocsp_ext.c.

const char* OCSP_crl_reason_str ( long  s)

Definition at line 121 of file ocsp_prn.c.

X509_EXTENSION* OCSP_crlID_new ( char *  url,
long *  n,
char *  tim 
)

Definition at line 424 of file ocsp_ext.c.

int OCSP_id_cmp ( OCSP_CERTID a,
OCSP_CERTID b 
)

Definition at line 155 of file ocsp_lib.c.

int OCSP_id_get0_info ( ASN1_OCTET_STRING **  piNameHash,
ASN1_OBJECT **  pmd,
ASN1_OCTET_STRING **  pikeyHash,
ASN1_INTEGER **  pserial,
OCSP_CERTID cid 
)

Definition at line 87 of file ocsp_srv.c.

int OCSP_id_issuer_cmp ( OCSP_CERTID a,
OCSP_CERTID b 
)

Definition at line 145 of file ocsp_lib.c.

int OCSP_ONEREQ_add1_ext_i2d ( OCSP_ONEREQ x,
int  nid,
void value,
int  crit,
unsigned long  flags 
)

Definition at line 159 of file ocsp_ext.c.

int OCSP_ONEREQ_add_ext ( OCSP_ONEREQ x,
X509_EXTENSION ex,
int  loc 
)

Definition at line 165 of file ocsp_ext.c.

X509_EXTENSION* OCSP_ONEREQ_delete_ext ( OCSP_ONEREQ x,
int  loc 
)

Definition at line 149 of file ocsp_ext.c.

OCSP_CERTID* OCSP_onereq_get0_id ( OCSP_ONEREQ one)

Definition at line 82 of file ocsp_srv.c.

void* OCSP_ONEREQ_get1_ext_d2i ( OCSP_ONEREQ x,
int  nid,
int *  crit,
int *  idx 
)

Definition at line 154 of file ocsp_ext.c.

X509_EXTENSION* OCSP_ONEREQ_get_ext ( OCSP_ONEREQ x,
int  loc 
)

Definition at line 144 of file ocsp_ext.c.

int OCSP_ONEREQ_get_ext_by_critical ( OCSP_ONEREQ x,
int  crit,
int  lastpos 
)

Definition at line 139 of file ocsp_ext.c.

int OCSP_ONEREQ_get_ext_by_NID ( OCSP_ONEREQ x,
int  nid,
int  lastpos 
)

Definition at line 129 of file ocsp_ext.c.

int OCSP_ONEREQ_get_ext_by_OBJ ( OCSP_ONEREQ x,
ASN1_OBJECT obj,
int  lastpos 
)

Definition at line 134 of file ocsp_ext.c.

int OCSP_ONEREQ_get_ext_count ( OCSP_ONEREQ x)

Definition at line 124 of file ocsp_ext.c.

int OCSP_parse_url ( char *  url,
char **  phost,
char **  pport,
char **  ppath,
int *  pssl 
)

Definition at line 168 of file ocsp_lib.c.

int OCSP_REQ_CTX_add1_header ( OCSP_REQ_CTX rctx,
const char *  name,
const char *  value 
)

Definition at line 135 of file ocsp_ht.c.

void OCSP_REQ_CTX_free ( OCSP_REQ_CTX rctx)

Definition at line 112 of file ocsp_ht.c.

int OCSP_REQ_CTX_set1_req ( OCSP_REQ_CTX rctx,
OCSP_REQUEST req 
)

Definition at line 121 of file ocsp_ht.c.

OCSP_ONEREQ* OCSP_request_add0_id ( OCSP_REQUEST req,
OCSP_CERTID cid 
)

Definition at line 82 of file ocsp_cl.c.

int OCSP_request_add1_cert ( OCSP_REQUEST req,
X509 cert 
)

Definition at line 121 of file ocsp_cl.c.

int OCSP_REQUEST_add1_ext_i2d ( OCSP_REQUEST x,
int  nid,
void value,
int  crit,
unsigned long  flags 
)

Definition at line 111 of file ocsp_ext.c.

int OCSP_request_add1_nonce ( OCSP_REQUEST req,
unsigned char *  val,
int  len 
)

Definition at line 352 of file ocsp_ext.c.

int OCSP_REQUEST_add_ext ( OCSP_REQUEST x,
X509_EXTENSION ex,
int  loc 
)

Definition at line 117 of file ocsp_ext.c.

X509_EXTENSION* OCSP_REQUEST_delete_ext ( OCSP_REQUEST x,
int  loc 
)

Definition at line 101 of file ocsp_ext.c.

void* OCSP_REQUEST_get1_ext_d2i ( OCSP_REQUEST x,
int  nid,
int *  crit,
int *  idx 
)

Definition at line 106 of file ocsp_ext.c.

X509_EXTENSION* OCSP_REQUEST_get_ext ( OCSP_REQUEST x,
int  loc 
)

Definition at line 96 of file ocsp_ext.c.

int OCSP_REQUEST_get_ext_by_critical ( OCSP_REQUEST x,
int  crit,
int  lastpos 
)

Definition at line 91 of file ocsp_ext.c.

int OCSP_REQUEST_get_ext_by_NID ( OCSP_REQUEST x,
int  nid,
int  lastpos 
)

Definition at line 81 of file ocsp_ext.c.

int OCSP_REQUEST_get_ext_by_OBJ ( OCSP_REQUEST x,
ASN1_OBJECT obj,
int  lastpos 
)

Definition at line 86 of file ocsp_ext.c.

int OCSP_REQUEST_get_ext_count ( OCSP_REQUEST x)

Definition at line 76 of file ocsp_ext.c.

int OCSP_request_is_signed ( OCSP_REQUEST req)

Definition at line 99 of file ocsp_srv.c.

int OCSP_request_onereq_count ( OCSP_REQUEST req)

Definition at line 72 of file ocsp_srv.c.

OCSP_ONEREQ* OCSP_request_onereq_get0 ( OCSP_REQUEST req,
int  i 
)

Definition at line 77 of file ocsp_srv.c.

int OCSP_REQUEST_print ( BIO bp,
OCSP_REQUEST a,
unsigned long  flags 
)

Definition at line 135 of file ocsp_prn.c.

int OCSP_request_set1_name ( OCSP_REQUEST req,
X509_NAME nm 
)

Definition at line 100 of file ocsp_cl.c.

int OCSP_request_sign ( OCSP_REQUEST req,
X509 signer,
EVP_PKEY key,
const EVP_MD dgst,
STACK_OF(X509)*  certs,
unsigned long  flags 
)

Definition at line 143 of file ocsp_cl.c.

int OCSP_request_verify ( OCSP_REQUEST req,
STACK_OF(X509)*  certs,
X509_STORE store,
unsigned long  flags 
)

Definition at line 359 of file ocsp_vfy.c.

int OCSP_resp_count ( OCSP_BASICRESP bs)

Definition at line 219 of file ocsp_cl.c.

int OCSP_resp_find ( OCSP_BASICRESP bs,
OCSP_CERTID id,
int  last 
)

Definition at line 235 of file ocsp_cl.c.

int OCSP_resp_find_status ( OCSP_BASICRESP bs,
OCSP_CERTID id,
int *  status,
int *  reason,
ASN1_GENERALIZEDTIME **  revtime,
ASN1_GENERALIZEDTIME **  thisupd,
ASN1_GENERALIZEDTIME **  nextupd 
)

Definition at line 288 of file ocsp_cl.c.

OCSP_SINGLERESP* OCSP_resp_get0 ( OCSP_BASICRESP bs,
int  idx 
)

Definition at line 227 of file ocsp_cl.c.

OCSP_RESPONSE* OCSP_response_create ( int  status,
OCSP_BASICRESP bs 
)

Definition at line 106 of file ocsp_srv.c.

OCSP_BASICRESP* OCSP_response_get1_basic ( OCSP_RESPONSE resp)

Definition at line 197 of file ocsp_cl.c.

int OCSP_RESPONSE_print ( BIO bp,
OCSP_RESPONSE o,
unsigned long  flags 
)

Definition at line 181 of file ocsp_prn.c.

int OCSP_response_status ( OCSP_RESPONSE resp)

Definition at line 187 of file ocsp_cl.c.

const char* OCSP_response_status_str ( long  s)

Definition at line 100 of file ocsp_prn.c.

OCSP_RESPONSE* OCSP_sendreq_bio ( BIO b,
char *  path,
OCSP_REQUEST req 
)

Definition at line 485 of file ocsp_ht.c.

int OCSP_sendreq_nbio ( OCSP_RESPONSE **  presp,
OCSP_REQ_CTX rctx 
)

Definition at line 263 of file ocsp_ht.c.

OCSP_REQ_CTX* OCSP_sendreq_new ( BIO io,
char *  path,
OCSP_REQUEST req,
int  maxline 
)

Definition at line 154 of file ocsp_ht.c.

int OCSP_single_get0_status ( OCSP_SINGLERESP single,
int *  reason,
ASN1_GENERALIZEDTIME **  revtime,
ASN1_GENERALIZEDTIME **  thisupd,
ASN1_GENERALIZEDTIME **  nextupd 
)

Definition at line 258 of file ocsp_cl.c.

int OCSP_SINGLERESP_add1_ext_i2d ( OCSP_SINGLERESP x,
int  nid,
void value,
int  crit,
unsigned long  flags 
)

Definition at line 255 of file ocsp_ext.c.

int OCSP_SINGLERESP_add_ext ( OCSP_SINGLERESP x,
X509_EXTENSION ex,
int  loc 
)

Definition at line 261 of file ocsp_ext.c.

X509_EXTENSION* OCSP_SINGLERESP_delete_ext ( OCSP_SINGLERESP x,
int  loc 
)

Definition at line 245 of file ocsp_ext.c.

void* OCSP_SINGLERESP_get1_ext_d2i ( OCSP_SINGLERESP x,
int  nid,
int *  crit,
int *  idx 
)

Definition at line 250 of file ocsp_ext.c.

X509_EXTENSION* OCSP_SINGLERESP_get_ext ( OCSP_SINGLERESP x,
int  loc 
)

Definition at line 240 of file ocsp_ext.c.

int OCSP_SINGLERESP_get_ext_by_critical ( OCSP_SINGLERESP x,
int  crit,
int  lastpos 
)

Definition at line 235 of file ocsp_ext.c.

int OCSP_SINGLERESP_get_ext_by_NID ( OCSP_SINGLERESP x,
int  nid,
int  lastpos 
)

Definition at line 225 of file ocsp_ext.c.

int OCSP_SINGLERESP_get_ext_by_OBJ ( OCSP_SINGLERESP x,
ASN1_OBJECT obj,
int  lastpos 
)

Definition at line 230 of file ocsp_ext.c.

int OCSP_SINGLERESP_get_ext_count ( OCSP_SINGLERESP x)

Definition at line 220 of file ocsp_ext.c.

X509_EXTENSION* OCSP_url_svcloc_new ( X509_NAME issuer,
char **  urls 
)

Definition at line 491 of file ocsp_ext.c.