GetCertificateCRLURLs

數位簽章

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

描述

傳回憑證指定的 CRL 發布位址

語法

Delphi

Function TPDFlib.GetCertificateCRLURLs(Const CertDER: AnsiString): WideString; Virtual;

ActiveX

Function PDFlib::GetCertificateCRLURLs(CertDER As Variant) As String

DLL

const wchar_t* DLGetCertificateCRLURLs(int InstanceID, const char* CertDER, int CertDERLength);
const char* DLGetCertificateCRLURLsA(int InstanceID, const char* CertDER, int CertDERLength);

參數

CertDER憑證,DER 編碼

傳回值

Addresses一行一個位址
空字串憑證沒有列出這類位址,或憑證讀不出來

備註

位址取自 CRL Distribution Points 擴充欄位(RFC 5280 §4.2.1.13),包括憑證列出的每一個發布點

只回報 URI。不含可取得資源的位置(例如目錄名稱或電子郵件地址)會直接跳過,不會當成可下載項目回傳

另請參閱

GetCertificateOCSPURLs, AddPAdESDSSCRLFromURL