CRYPT_TIMESTAMP_RESPONSE structure (wincrypt.h)

The CRYPT_TIMESTAMP_RESPONSE structure is used internally to encapsulate an Abstract Syntax Notation One (ASN.1) Distinguished Encoding Rules (DER) encoded response.

Syntax

typedef struct _CRYPT_TIMESTAMP_RESPONSE {
  DWORD          dwStatus;
  DWORD          cFreeText;
  LPWSTR         *rgFreeText;
  CRYPT_BIT_BLOB FailureInfo;
  CRYPT_DER_BLOB ContentInfo;
} CRYPT_TIMESTAMP_RESPONSE, *PCRYPT_TIMESTAMP_RESPONSE;

Members

dwStatus

A DWORD value that indicates the status of the time stamp response.

This member can be one of the following values.

Value Meaning
TIMESTAMP_STATUS_GRANTED
0
A TimeStampToken is present in the ContentInfo member.
TIMESTAMP_STATUS_GRANTED_WITH_MODS
1
A TimeStampToken, with modifications, is present in the ContentInfo member.
TIMESTAMP_STATUS_REJECTED
2
The time stamp request was rejected.
TIMESTAMP_STATUS_WAITING
3
The time stamp request is still pending.
TIMESTAMP_STATUS_REVOCATION_WARNING
4
The message in the ContentInfo member contains a warning that a revocation is imminent .
TIMESTAMP_STATUS_REVOKED
5
The message in the ContentInfo member is a notification that a revocation has occurred.

cFreeText

Optional. The length, in characters, of the string pointed to by the rgFreeText member.

rgFreeText

Optional. A pointer to a string that contains the text information about request failure.

FailureInfo

A CRYPT_BIT_BLOB structure that contains the reason why the time stamp request was rejected. Each flag is encoded as a bit in the structure.

Value Meaning
TIMESTAMP_FAILURE_BAD_ALG
0
An unrecognized or unsupported algorithm identifier was specified.
TIMESTAMP_FAILURE_BAD_REQUEST
2
The transaction is not permitted or supported.
TIMESTAMP_FAILURE_BAD_FORMAT
5
The data submitted is in the wrong format.
TIMESTAMP_FAILURE_TIME_NOT_AVAILABLE
14
The Time Stamping Authority (TSA) time source is not available.
TIMESTAMP_FAILURE_POLICY_NOT_SUPPORTED
15
The requested TSA policy is not supported by the TSA.
TIMESTAMP_FAILURE_EXTENSION_NOT_SUPPORTED
16
The requested extension is not supported by the TSA.
TIMESTAMP_FAILURE_INFO_NOT_AVAILABLE
17
The additional information requested was not recognized or is not available.
TIMESTAMP_FAILURE_SYSTEM_FAILURE
25
The request cannot be handled due to a system failure.

ContentInfo

A CRYPT_DER_BLOB structure that encapsulates a signed data content type in Cryptographic Message Syntax (CMS) format.

Requirements

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