TPDFlibOCSPFetch
Data types, security and signatures
Description
Asks an OCSP responder for the status of a certificate for FetchOCSPResponse.
TPDFlib declares the public methods and a protected dispatch method for obtaining an OCSP status response. The edition class supplies the implementation as a callback of this type. A plain TPDFlib instance supplies none, so the call returns the documented empty result and sets LastErrorCode to PDFLIB_ERROR_ENTERPRISE_REQUIRED. Application code never declares, assigns or calls a value of this type.
Syntax
Delphi
TPDFlibOCSPFetch = Function(Const SubjectCertDER, IssuerCertDER: AnsiString;
Const ResponderURL: WideString): AnsiString Of Object;Parameters
| SubjectCertDER | The certificate whose status is being asked about, DER encoded |
|---|---|
| IssuerCertDER | The certificate that issued it, DER encoded |
| ResponderURL | Responder address, or an empty string to use the one the certificate names |
Return values
| T | |
| Empty string | The exchange failed or the responder did not answer successful |
See also
TPDFlibOCSPStore, TPDFlibOCSPRequestBuild, TPDFlibOCSPStatusParse, FetchOCSPResponse, AddPAdESDSSOCSPFromCertificates