GetTimeStampErrorA

Digital signatures

Requires the Enterprise edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibEnterprise (unit PDFlibEnterprise); the Enterprise DLL and ActiveX builds provide it unchanged; other editions keep the method, which returns 0, an empty string or False and sets LastErrorCode to 900 (PDFLIB_ERROR_ENTERPRISE_REQUIRED)

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetTimeStampError and string arguments are interpreted using the current SetAnsiMode code page

Returns the reason the last time-stamp exchange failed

Syntax

Delphi

Function DLGetTimeStampErrorA(InstanceID: Integer): PAnsiChar;

DLL

const char* DLGetTimeStampErrorA(int InstanceID);

Return values

Empty stringThe last exchange succeeded, or none has been attempted
MessageA description of the failure, including the authority's own free text when it sent any

Remarks

Covers configuration problems (no server set, an address that is not http or https), local validation (a digest whose length does not match the selected algorithm), transport failures, an authority rejection, and a token that fails the nonce echo check

See also

GetTimeStampStatus, FetchTimeStampToken