FetchRevocationMaterial
Digital signatures
Description
Downloads validation material from an address a certificate names.
Syntax
Delphi
Function TPDFlib.FetchRevocationMaterial(Const URL: WideString): AnsiString;Parameters
| URL | An http or https address, typically one returned by GetCertificateCRLURLs or GetCertificateIssuerURLs. |
|---|
Return values
| Material | The bytes exactly as served. |
|---|---|
| Empty string | The download failed; GetTimeStampError carries the reason. |
Remarks
The timeout is the one set by SetTimeStampOptions. Responses are capped at 8 MB, which is far above any real CRL, so a misconfigured endpoint cannot exhaust memory.
Example
URLs:= PDF.GetCertificateCRLURLs(CertDER);
CRL:= PDF.FetchRevocationMaterial(Copy(URLs, 1, Pos(#13, URLs+ #13)- 1));