SetPAdESSignatureTimeStampFieldA

Security and 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 SetPAdESSignatureTimeStampField and string arguments are interpreted using the current SetAnsiMode code page

Names the signature field whose CMS signatureValue will receive an RFC 3161 signature-time-stamp unsigned attribute

Syntax

Delphi

Function DLSetPAdESSignatureTimeStampFieldA(InstanceID: Integer; STSProcessID: Integer; SignatureFieldName: PAnsiChar): Integer;

DLL

int DLSetPAdESSignatureTimeStampFieldA(int InstanceID, int STSProcessID, const char* SignatureFieldName);

Parameters

STSProcessIDValue returned by one of the NewPAdESSignatureTimeStampProcessFrom* functions
SignatureFieldNameName of the signature field to augment

Return values

Returns 1 when the process exists; returns 0 for an invalid process id

See also

GetPAdESSignatureValueHashHex