AddSignProcessRevocationOCSP

Security and signatures

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;

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 normalised responses are stored once, and the attribute is emitted only for adbe.pkcs7.detached

See also

AddSignProcessRevocationCRL, ClearSignProcessRevocationInfo, AddPAdESDSSOCSP