GetOCSPResponseStatus

Firmas digitales

Requiere la edición Small Business. En código Delphi, C++Builder y Lazarus, la biblioteca se crea como TPDFlibSmallBusiness (unidad PDFlibSmallBusiness) o TPDFlibEnterprise; la DLL y las compilaciones ActiveX de Small Business y Enterprise la proporcionan sin cambios. La edición Single conserva el método, que devuelve -1 y establece LastErrorCode en 901 (PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

Descripción

Devuelve el estado de respuesta RFC 6960 contenido en los bytes de respuesta OCSP

Sintaxis

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

Parámetros

ResponseDERBytes devueltos por un respondedor

Valores devueltos

0successful
1malformedRequest
2internalError
3tryLater
5sigRequired
6unauthorized
-1Los bytes no son una respuesta OCSP

Observaciones

Solo el estado 0 contiene información sobre el estado del certificado; los demás valores son informes de error

Véase también

FetchOCSPResponse, GetTimeStampError