AddSignProcessRevocationOCSP

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 DER-encoded OCSP response to the adbe-revocationInfoArchival signed attribute of a PDF signing process

Syntax

Delphi

Function TPDFlib.AddSignProcessRevocationOCSP(SignProcessID: Integer; Const OCSPDER: AnsiString): Integer; Virtual;

ActiveX

Function PDFlib::AddSignProcessRevocationOCSP(SignProcessID As Long, OCSPDER As Variant) As Long

DLL

int DLAddSignProcessRevocationOCSP(int InstanceID, int SignProcessID, const char* OCSPDER, int OCSPLength);

Parameters

SignProcessIDValue returned by a NewSignProcessFrom* function
OCSPDERA complete successful OCSPResponse or a BasicOCSPResponse DER SEQUENCE

Return values

1The response was accepted or was already present
0The process id, response status, DER encoding, or aggregate size was invalid

Remarks

A bare BasicOCSPResponse is wrapped as a successful OCSPResponse with response type id-pkix-ocsp-basic

Duplicate normalized responses are stored once, and the attribute is emitted only for adbe.pkcs7.detached

The default native non-Windows PFX provider preserves this signed attribute with compatible RSA, RSA-PSS and ECDSA identities; authenticating embedded response bytes does not establish their trust, freshness or applicability

See Native CMS signed attributes for native processing limits

See also

AddSignProcessRevocationCRL, ClearSignProcessRevocationInfo, AddPAdESDSSOCSP