Patch level : 12.0 908
Files correlati : ba1 Commento : firma
This commit is contained in:
parent
35aae8d3a6
commit
f4dc659850
@ -278,7 +278,7 @@ bool input_filename(TFilename& file)
|
||||
return good;
|
||||
}
|
||||
|
||||
BOOLEAN sirio_codesigning(const TFilename& filename, bool verify)
|
||||
bool sirio_codesigning(const TFilename& filename, bool verify)
|
||||
{
|
||||
const char * const default_sign = R"("C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64\signtool.exe" sign /a /s MY /n "Sirio Informatica e Sistemi SPA" /t http://timestamp.verisign.com/scripts/timstamp.dll /v)";
|
||||
const char * const default_verify = R"("C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x64\signtool.exe" verify /a /pa /v)";
|
||||
@ -286,7 +286,7 @@ BOOLEAN sirio_codesigning(const TFilename& filename, bool verify)
|
||||
TString command = installini.get(!verify ? "SirioSignCommand" : "SirioSignVerifyCommand", nullptr, -1, "");
|
||||
if (command.empty())
|
||||
command << !verify ? default_sign : default_verify;
|
||||
command << " \"" << filename.path() << static_cast<const char*>((const TFilename&)filename) << "\"";
|
||||
command << " \"" << filename << "\"";
|
||||
const int exit = xvt_sys_execute(command, TRUE, FALSE);
|
||||
return exit == 0 || exit == 2; // Execution was successful [0] OR Execution has completed with warnings [2]
|
||||
}
|
||||
|
@ -20,7 +20,7 @@
|
||||
#define SAFE_DELETE(p) { delete p; p = NULL; }
|
||||
#define DEBUG_ENABLED is_debug_station()
|
||||
|
||||
BOOLEAN sirio_codesigning(const TFilename& filename, bool verify = false);
|
||||
bool sirio_codesigning(const TFilename& filename, bool verify = false);
|
||||
#define SIRIOSIGN(filename) sirio_codesigning((const TFilename&)((filename)), false)
|
||||
#define SIRIOSIGN_VERIFY(filename) sirio_codesigning((const TFilename&)((filename)), true)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user