GetTimeStampError

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

Returns the reason the last time-stamp exchange failed

Syntax

Delphi

Function TPDFlib.GetTimeStampError: WideString; Virtual;

ActiveX

Function PDFlib::GetTimeStampError() As String

DLL

const wchar_t* DLGetTimeStampError(int InstanceID);
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