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 LongDLL
int DLGetOCSPResponseStatus(int InstanceID, const char* ResponseDER, int ResponseDERLength);参数
| ResponseDER | 响应方返回的字节 |
|---|
返回值
| 0 | successful |
|---|---|
| 1 | malformedRequest |
| 2 | internalError |
| 3 | tryLater |
| 5 | sigRequired |
| 6 | unauthorized |
| -1 | 这些字节不是 OCSP 响应 |
备注
只有状态 0 携带证书状态信息;其他值都是错误报告