OCSP_RESPONSE_INFO structure (wincrypt.h)

The OCSP_RESPONSE_INFO structure indicates the success or failure of the corresponding online certificate status protocol (OCSP) request. For successful requests, it contains the type and value of response information.

Syntax

typedef struct _OCSP_RESPONSE_INFO {
  DWORD            dwStatus;
  LPSTR            pszObjId;
  CRYPT_OBJID_BLOB Value;
} OCSP_RESPONSE_INFO, *POCSP_RESPONSE_INFO;

Members

dwStatus

A value that indicates the processing status of the corresponding request. If the status is anything other than OCSP_SUCCESSFUL_RESPONSE, pszObjId and Value are not set.

This member can be one of the following possible values.

Value Meaning
OCSP_SUCCESSFUL_RESPONSE
0
The response has valid confirmations.
OCSP_MALFORMED_REQUEST_RESPONSE
1
The request received does not conform to OCSP syntax.
OCSP_INTERNAL_ERROR_RESPONSE
2
The responder encountered an internal error. The request should be resent to a different responder.
OCSP_TRY_LATER_RESPONSE
3
The responder service is operational but temporarily unable to respond.
4
This value is not used.
OCSP_SIG_REQUIRED_RESPONSE
5
Before the responder service can respond, it requires that the client sign the request.
OCSP_UNAUTHORIZED_RESPONSE
6
The client is not authorized to request a response from this responder service.

pszObjId

A pointer to a string that identifies the type of data in Value.

The following table lists possible values for pszObjId.

Value Meaning
szOID_PKIX_OCSP_BASIC_SIGNED_RESPONSE
1.3.6.1.5.5.7.48.1.1

Value

An array of bytes that contain data encoded by using Distinguished Encoding Rules (DER), as specified by pszObjId.

Remarks

OCSP applications can encode or decode this structure by using X509_ASN_ENCODING or PKCS_7_ASN_ENCODING.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header wincrypt.h

See also

OCSP_BASIC_SIGNED_RESPONSE_INFO

RFC 2560 Online Certificate Status Protocol