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

ResponseDERThe bytes returned by a responder

Return values

0successful
1malformedRequest
2internalError
3tryLater
5sigRequired
6unauthorized
-1The bytes are not an OCSP response

See also

TPDFlibOCSPRequestBuild, TPDFlibOCSPFetch, GetOCSPResponseStatus