AddSignProcessRevocationOCSP

安全與簽章

描述

把 DER 編碼的 OCSP 回應加入 PDF 簽署程序的 adbe-revocationInfoArchival 已簽署屬性

語法

Delphi

Function TPDFlib.AddSignProcessRevocationOCSP(SignProcessID: Integer; Const OCSPDER: AnsiString): Integer;

ActiveX

Function PDFlib::AddSignProcessRevocationOCSP(SignProcessID As Long, OCSPDER As Variant) As Long

DLL

int DLAddSignProcessRevocationOCSP(int InstanceID, int SignProcessID, const char* OCSPDER, int OCSPLength);

參數

SignProcessIDNewSignProcessFrom* 函式傳回的值
OCSPDER完整的成功 OCSPResponse,或 BasicOCSPResponse DER SEQUENCE

傳回值

1回應已被接受,或本來就存在
0process id、回應狀態、DER 編碼或彙整大小無效

備註

裸的 BasicOCSPResponse 會包裝成回應類型為 id-pkix-ocsp-basic 的成功 OCSPResponse重複的正規化回應只會儲存一次,而該屬性只會針對

adbe.pkcs7.detached

另請參閱

AddSignProcessRevocationCRL, ClearSignProcessRevocationInfo, AddPAdESDSSOCSP