The DgsTSResponse function is given the data that was returned from the
DigiStamp server. This function decodes the status information. If status is
good the constructs a PCKS 7 message that contains the time stamp.
BYTE *pbTimeStampBlob, // in
DWORD pcbTimeStampBlob, // in
BYTE **pbMsgBlob, // out
DWORD *pcbMsgBlob, // in/out
- The response from the DigiStamp server. Contains a encoded time stamp
response. The time stamp response has status information and optionally the signed
data object that is the time stamp..
- Size, in bytes, of the pbTimeStampBlob buffer.
- The time stamp. Returned as an encoded PKCS 7 message. If status is an
error condition then pbMsgBlob is not returned. The caller of the function is
responsible for deleting the memory allocated to hold this value.
- Pointer to a DWORD specifying the size, in bytes, of the pbMsgBlob
buffer. When the function returns, this variable contains the size, in bytes, of the
signed and encoded message.
If the function succeeds, the return value is zero. Return codes other
that zero are describe below. The numberical values are defined of the toolkit
||If the buffer specified by the pbTimeStampBlob parameter is
not large enough to hold the returned data, the function sets the ERROR_MORE_DATA code,
and stores the required buffer size, in bytes, into the variable pointed to by pcbTimeStampBlob.
||Unsupported Hash Algorithm
||Transaction not permitted or supported.
||Data submitted has wrong format (e.g. Hash length does not
||DigiStamp server not available.
||Request policy not supported by DigiStamp
||Request extension not supported by DigiStamp
||Additional information requested not available.
||Connection to the Internet could not be established.
||Request did not include a time stamp request (TSR)
||Request did not include an account value (AN)
||Request did not include an account verification value (SIG)
||The account number specified was not valid.
||The base 64 encoding of the time stamp request was not
||The base 64 encoding of the account verification value was
||The account and password combination could not be verified.
||The account did not have adequate funds to process the
03 February, 2000