SetSignProcessReserveContentsBytes

Security and Signatures

Description

Adds extra reserved bytes to the signature /Contents placeholder written during a sign process.

Syntax

Delphi

Function SetSignProcessReserveContentsBytes(SignProcessID, ExtraBytes: Integer): Integer;

Parameters

SignProcessIDValue returned by one of the NewSignProcessFrom* functions.
ExtraBytesAdditional placeholder capacity. Values less than or equal to zero clear the extra reserve.

Returns

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

Remarks

Use this before EndSignProcessTo* when a later workflow will attach a CMS unsigned attribute such as a signature-time-stamp token. Without enough reserve, the later augmentation can fail with result code 13.

See also

SetPAdESSignatureCMSBytes, EndPAdESSignatureTimeStampProcessToFile