GetOCSPResponseStatus

Digital signatures

Description

Returns the RFC 6960 response status carried by OCSP response bytes.

Syntax

Delphi

Function TPDFlib.GetOCSPResponseStatus(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.

Remarks

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

See also

FetchOCSPResponse, GetTimeStampError