GetOCSPResponseStatus

數位簽章

需要 Small Business 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibSmallBusiness(PDFlibSmallBusiness 單元)或 TPDFlibEnterprise 建立程式庫;Small Business 與 Enterprise 的 DLL 與 ActiveX 組建原樣提供此方法。Single 版本保留此方法,但會傳回 -1 並把 LastErrorCode 設為 901(PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

描述

傳回 OCSP 回應位元組所攜帶的 RFC 6960 回應狀態

語法

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);

參數

ResponseDERresponder 傳回的位元組

傳回值

0successful
1malformedRequest
2internalError
3tryLater
5sigRequired
6unauthorized
-1這些位元組不是 OCSP 回應

備註

只有狀態 0 攜帶憑證狀態資訊;其他值都是錯誤回報

另請參閱

FetchOCSPResponse, GetTimeStampError