AddPAdESDSSOCSP
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
Stages a single DER-encoded OCSP response (RFC 6960) for inclusion in the DSS /OCSPs array. Encode as the full OCSPResponse ASN.1 type, not the inner BasicOCSPResponse
On Windows, signature-chain verification accepts a response without nextUpdate through 24 hours after thisUpdate. A response with nextUpdate must cover the verification time
Syntax
Delphi
Function TPDFlib.AddPAdESDSSOCSP(DSSProcessID: Integer; Const OCSPDER: AnsiString): Integer; Virtual;ActiveX
Function PDFlib::AddPAdESDSSOCSP(DSSProcessID As Long, OCSPDER As Variant) As LongDLL
int DLAddPAdESDSSOCSP(int InstanceID, int DSSProcessID, const char* OCSPDER, int OCSPDERLength);
Parameters
| DSSProcessID | Value returned by one of the NewPAdESDSSProcessFrom* functions |
|---|---|
| OCSPDER | DER-encoded OCSPResponse bytes |
Return values
1 when the OCSP response has been staged, or 0 when the process ID is invalid or the bytes are not one complete DER-encoded SEQUENCE (an empty string is rejected)