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 LongDLL
int DLGetOCSPResponseStatus(int InstanceID, const char* ResponseDER, int ResponseDERLength);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 |
Remarks
Only status 0 carries certificate status information; the other values are error reports