Go to the documentation of this file.
31 #ifndef _OCSP_COMMON_H
32 #define _OCSP_COMMON_H
40 #define OCSP_SUPPORT DISABLED
41 #elif (OCSP_SUPPORT != ENABLED && OCSP_SUPPORT != DISABLED)
42 #error OCSP_SUPPORT parameter is not valid
46 #ifndef OCSP_SIGN_DELEGATION_SUPPORT
47 #define OCSP_SIGN_DELEGATION_SUPPORT ENABLED
48 #elif (OCSP_SIGN_DELEGATION_SUPPORT != ENABLED && OCSP_SIGN_DELEGATION_SUPPORT != DISABLED)
49 #error OCSP_SIGN_DELEGATION_SUPPORT parameter is not valid
53 #ifndef OCSP_MAX_REQUESTS
54 #define OCSP_MAX_REQUESTS 2
55 #elif (OCSP_MAX_REQUESTS < 1)
56 #error OCSP_MAX_REQUESTS parameter is not valid
60 #ifndef OCSP_MAX_RESPONSES
61 #define OCSP_MAX_RESPONSES 2
62 #elif (OCSP_MAX_RESPONSES < 1)
63 #error OCSP_MAX_RESPONSES parameter is not valid
67 #ifndef OCSP_SHA1_SUPPORT
68 #define OCSP_SHA1_SUPPORT ENABLED
69 #elif (OCSP_SHA1_SUPPORT != ENABLED && OCSP_SHA1_SUPPORT != DISABLED)
70 #error OCSP_SHA1_SUPPORT parameter is not valid
74 #ifndef OCSP_SHA256_SUPPORT
75 #define OCSP_SHA256_SUPPORT ENABLED
76 #elif (OCSP_SHA256_SUPPORT != ENABLED && OCSP_SHA256_SUPPORT != DISABLED)
77 #error OCSP_SHA256_SUPPORT parameter is not valid
81 #ifndef OCSP_SHA384_SUPPORT
82 #define OCSP_SHA384_SUPPORT DISABLED
83 #elif (OCSP_SHA384_SUPPORT != ENABLED && OCSP_SHA384_SUPPORT != DISABLED)
84 #error OCSP_SHA384_SUPPORT parameter is not valid
88 #ifndef OCSP_SHA512_SUPPORT
89 #define OCSP_SHA512_SUPPORT DISABLED
90 #elif (OCSP_SHA512_SUPPORT != ENABLED && OCSP_SHA512_SUPPORT != DISABLED)
91 #error OCSP_SHA512_SUPPORT parameter is not valid
@ OCSP_RESP_STATUS_UNAUTHORIZED
Request unauthorized.
@ OCSP_RESP_STATUS_INTERNAL_ERROR
Internal error in issuer.
X.509 common definitions.
OcspResponseStatus
OCSP response status.
TbsResponseData structure.
@ OCSP_RESP_STATUS_SIG_REQUIRED
Must sign the request.
@ OCSP_CERT_STATUS_UNKNOWN
OcspResponderId responderId
#define OCSP_MAX_RESPONSES
X509OctetString issuerNameHash
OcspTbsRequest tbsRequest
X509OctetString signatureValue
X509OctetString serialNumber
OcspSingleExtensions singleExtensions
@ OCSP_RESP_STATUS_TRY_LATER
Try again later.
BasicOCSPResponse structure.
OcspTbsResponseData tbsResponseData
X509CrlReasons
CRL reasons.
X509OctetString issuerKeyHash
OcspExtensions requestExtensions
X509CrlReasons revocationReason
OcspCertStatus
Certificate status.
OcspBasicResponse basicResponse
X509SignAlgoId signatureAlgo
General definitions for cryptographic algorithms.
X509SignAlgoId signatureAlgo
@ OCSP_RESP_STATUS_MALFORMED_REQUEST
Illegal confirmation request.
Date and time representation.
@ OCSP_CERT_STATUS_REVOKED
X509OctetString responseType
OcspSingleExtensions singleExtensions
OcspCertStatus certStatus
const HashAlgo * ocspSelectHashAlgo(void)
Hash algorithm selection.
#define OCSP_MAX_REQUESTS
X509OctetString signature
OcspExtensions responseExtensions
SingleResponse structure.
Common interface for hash algorithms.
Single request/response extensions.
const uint8_t PKIX_OCSP_BASIC_OID[9]
const HashAlgo * ocspGetHashAlgo(const uint8_t *oid, size_t length)
Get the hash algorithm that matches the specified identifier.
@ OCSP_RESP_STATUS_SUCCESSFUL
Response has valid confirmations.
const uint8_t PKIX_OCSP_NONCE_OID[9]
OcspResponseStatus responseStatus
Signature algorithm identifier.
OcspVersion
OCSP versions.
OcspRevokedInfo revokedInfo