|
@@ -197,10 +197,10 @@ type
|
|
|
destructor Destroy; override;
|
|
|
procedure Initialize; override;
|
|
|
function Add(const Url, BaseName, RequiredSHA256OfFile: String): Integer;
|
|
|
- function AddWithISSigVerify(const Url, BaseName: String;
|
|
|
+ function AddWithISSigVerify(const Url, IssigUrl, BaseName: String;
|
|
|
const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
|
function AddEx(const Url, BaseName, RequiredSHA256OfFile, UserName, Password: String): Integer;
|
|
|
- function AddExWithISSigVerify(const Url, BaseName, UserName, Password: String;
|
|
|
+ function AddExWithISSigVerify(const Url, IssigUrl, BaseName, UserName, Password: String;
|
|
|
const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
|
procedure Clear;
|
|
|
function Download: Int64;
|
|
@@ -249,7 +249,7 @@ function ConvertAllowedKeysRuntimeIDsToISSigAllowedKeys(const AllowedKeysRuntime
|
|
|
implementation
|
|
|
|
|
|
uses
|
|
|
- StrUtils,
|
|
|
+ StrUtils, ISSigFunc,
|
|
|
Shared.Struct, Shared.SetupTypes, Setup.MainFunc, Setup.SelectFolderForm,
|
|
|
SetupLdrAndSetup.Messages, Shared.SetupMessageIDs, PathFunc, Shared.CommonFunc.Vcl,
|
|
|
Shared.CommonFunc, BrowseFunc, Setup.LoggingFunc, Setup.InstFunc,
|
|
@@ -1099,11 +1099,10 @@ begin
|
|
|
Result := DoAdd(Url, BaseName, RequiredSHA256OfFile);
|
|
|
end;
|
|
|
|
|
|
-function TDownloadWizardPage.AddWithISSigVerify(const Url, BaseName: String;
|
|
|
+function TDownloadWizardPage.AddWithISSigVerify(const Url, IssigUrl, BaseName: String;
|
|
|
const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
|
begin
|
|
|
- const ISSigAllowedKeys = ConvertAllowedKeysRuntimeIDsToISSigAllowedKeys(AllowedKeysRuntimeIDs);
|
|
|
- Result := DoAdd(Url, BaseName, '', '', '', True, ISSigAllowedKeys);
|
|
|
+ Result := AddExWithISSigVerify(Url, IssigUrl, BaseName, '', '', AllowedKeysRuntimeIDs);
|
|
|
end;
|
|
|
|
|
|
function TDownloadWizardPage.AddEx(const Url, BaseName, RequiredSHA256OfFile, UserName, Password: String): Integer;
|
|
@@ -1111,10 +1110,11 @@ begin
|
|
|
Result := DoAdd(Url, BaseName, RequiredSHA256OfFile, UserName, Password);
|
|
|
end;
|
|
|
|
|
|
-function TDownloadWizardPage.AddExWithISSigVerify(const Url, BaseName, UserName,
|
|
|
+function TDownloadWizardPage.AddExWithISSigVerify(const Url, IssigUrl, BaseName, UserName,
|
|
|
Password: String; const AllowedKeysRuntimeIDs: TStringList): Integer;
|
|
|
begin
|
|
|
const ISSigAllowedKeys = ConvertAllowedKeysRuntimeIDsToISSigAllowedKeys(AllowedKeysRuntimeIDs);
|
|
|
+ DoAdd(IssigUrl, BaseName + ISSigExt, '', UserName, Password, False, '');
|
|
|
Result := DoAdd(Url, BaseName, '', UserName, Password, True, ISSigAllowedKeys);
|
|
|
end;
|
|
|
|