GetOCSPResponseStatus

Digital signatures

Requires the Small Business edition — in Delphi, C++Builder and Lazarus code create the library as TPDFlibSmallBusiness (unit PDFlibSmallBusiness) or TPDFlibEnterprise; the Small Business and Enterprise DLL and ActiveX builds provide it unchanged; the Single edition keeps the method, which returns -1 and sets LastErrorCode to 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

Description

Returns the RFC 6960 response status carried by OCSP response bytes

Syntax

Delphi

Function TPDFlib.GetOCSPResponseStatus(Const ResponseDER: AnsiString): Integer; Virtual;

ActiveX

Function PDFlib::GetOCSPResponseStatus(ResponseDER As Variant) As Long

DLL

int DLGetOCSPResponseStatus(int InstanceID, const char* ResponseDER, int ResponseDERLength);

Parameters

ResponseDERThe bytes returned by a responder

Return values

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

Remarks

Only status 0 carries certificate status information; the other values are error reports

See also

FetchOCSPResponse, GetTimeStampError