AddOCSP

security and signatures

Requires the Enterprise edition — a method of TPDFlibDSSProcess in the Enterprise unit PDFlibEntSignVerify

Description

Adds one DER-encoded OCSP response to the OCSPs array of the process; Execute writes the array as the /OCSPs entries of the /DSS dictionary.

The procedure appends the value it receives and nothing else: OCSPDER is neither parsed nor validated, and an empty string is appended as well.

Requires the Enterprise edition; the method belongs to TPDFlibDSSProcess in unit PDFlibEntSignVerify.

Syntax

Delphi

Procedure TPDFlibDSSProcess.AddOCSP(Const OCSPDER: AnsiString);

Parameters

OCSPDERThe complete DER bytes of one OCSP response, as returned by the responder

Remarks

Call it any number of times before Execute; the order of the calls is the order of the /OCSPs array and the base for the OCSP indexes of a VRI entry added with AddVRIEntry.

Execute stores the string verbatim as the payload of a new stream object, so anything that is not the DER encoding of an OCSP response ends up as an unusable validation stream. The Enterprise class method AddPAdESDSSOCSP, which calls this procedure, rejects data that is not a single DER SEQUENCE and returns 0 before the data gets here.

The procedure does not raise on any input.

See also

TPDFlibDSSProcess, AddCertificate, AddCRL, AddVRIEntry, Execute, AddPAdESDSSOCSP