TPDFlibOCSPStatusParse
Data types, digital signatures
Description
Reads the RFC 6960 response status out of OCSP response bytes. This callback is a plain function type and is not bound to a method.
TPDFlib declares the public methods and a protected dispatch method for reading the response status of an OCSP 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_SMALLBUSINESS_REQUIRED. Application code never declares, assigns or calls a value of this type.
Syntax
Delphi
TPDFlibOCSPStatusParse = Function(Const ResponseDER: AnsiString): Integer;Parameters
| ResponseDER | The bytes returned by a responder |
|---|
Return values
| 0 | successful |
|---|---|
| 1 | malformedRequest |
| 2 | internalError |
| 3 | tryLater |
| 5 | sigRequired |
| 6 | unauthorized |
| -1 | The bytes are not an OCSP response |
See also
TPDFlibOCSPRequestBuild, TPDFlibOCSPFetch, GetOCSPResponseStatus