AddPAdESDSSVRI

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

Adds a per-signature Validation Related Information entry to the DSS process being assembled

Syntax

Delphi

Function TPDFlib.AddPAdESDSSVRI(DSSProcessID: Integer; Const SigContentsHashHex, CertIdxCSV, CRLIdxCSV, OCSPIdxCSV: AnsiString): Integer; Virtual;

ActiveX

Function PDFlib::AddPAdESDSSVRI(DSSProcessID As Long, SigContentsHashHex As String, CertIdxCSV As String, CRLIdxCSV As String, OCSPIdxCSV As String) As Long

DLL

int DLAddPAdESDSSVRI(int InstanceID, int DSSProcessID, const wchar_t* SigContentsHashHex, const wchar_t* CertIdxCSV, const wchar_t* CRLIdxCSV, const wchar_t* OCSPIdxCSV);

Parameters

DSSProcessIDValue returned by one of the NewPAdESDSSProcessFrom* functions
SigContentsHashHexUppercase hex SHA-1 hash of the signature /Contents bytes used as the VRI dictionary key
CertIdxCSVComma-separated 0-based indexes of staged DSS certificates to reference, or an empty string
CRLIdxCSVComma-separated 0-based indexes of staged DSS CRLs to reference, or an empty string
OCSPIdxCSVComma-separated 0-based indexes of staged DSS OCSP responses to reference, or an empty string

Return values

Returns 1 when the DSS process exists and the VRI entry is staged; returns 0 for an invalid process id

See also

NewPAdESDSSProcessFromFile, AddPAdESDSSCertificate, AddPAdESDSSCRL, AddPAdESDSSOCSP