Patch level : 12.0 nopatch

Files correlati     :
Commento        :

MOdificato il metodo per firmare i programmi per avere un log
This commit is contained in:
Alessandro Bonazzi 2021-06-29 16:38:01 +02:00
parent 75aea06488
commit 0675301082
4 changed files with 1170 additions and 2 deletions

View File

@ -383,11 +383,27 @@ bool sirio_codesigning(const TFilename& filename, bool verify)
// TConfig installini("install.ini", "Main");
// if (command.empty())
// command << !verify ? default_sign : default_verify;
TString command = !verify ? "signtool.exe sign /a /s MY /n \"Sirio Informatica e Sistemi SPA\" /fd sha256 /tr http://timestamp.digicert.com /v)" :
TString command = !verify ? "signtool.exe sign /a /s MY /n \"Sirio Informatica e Sistemi SPA\" /fd sha256 /tr http://timestamp.digicert.com /v" :
"signtool.exe verify /a /pa /v" ;
command << " \"" << filename << "\"";
const int exit = xvt_sys_execute(command, TRUE, FALSE);
{
ofstream o("sign.bat");
TFilename f(filename);
o << command;
f.ext("");
if (verify)
o << " 2> " << f << "-verify.txt\n";
else
o << " 2> " << f << "-sign.txt\n";
}
const int exit = xvt_sys_execute("sign.bat", TRUE, FALSE);
remove("sign.bat");
return exit == 0 || exit == 2; // Execution was successful [0] OR Execution has completed with warnings [2]
}

Binary file not shown.

View File

@ -0,0 +1,122 @@
//id campi maschera ca0600a (file commesse)
//campi normali
#define F_CMS_DESCRAGG 202
#define F_CMS_ANNO 203
#define F_CMS_LOCDIV 204
#define F_CMS_INDIR 205
#define F_CMS_CIV 206
#define F_CMS_LOC 207
#define F_CMS_STATO 208
#define F_CMS_DESTATO 209
#define F_CMS_COM 210
#define F_CMS_CAP 211
#define F_CMS_PROV 212
#define F_CMS_DEN 213
#define F_CMS_CODCF 214
#define F_CMS_CRAGSOC 215
#define F_CMS_REGIVA 216
#define F_CMS_PRORATA 217
#define F_CMS_PUBBLICA 218
#define F_CMS_RENDIC 219
#define F_CMS_DATAINIZIO 220
#define F_CMS_DATAFINE 221
#define F_CMS_AVANZ 222
#define F_CMS_CHIUSA 223
#define F_CMS_PROROGA 224
#define F_CMS_DATAPROR 225
#define F_CMS_CODRESP 226
#define F_CMS_DESRESP 255
#define F_CMS_CODTIPOL 227
#define F_CMS_DESTIPOL 253
#define F_CMS_CODTIPCM 228
#define F_CMS_DESTIPCM 254
#define F_CMS_GESTFASI 229
#define F_CMS_RIFER 230
#define F_CMS_DATAPREV 231
#define F_CMS_PROVVP 232
#define F_CMS_ANNOP 233
#define F_CMS_CODNUMP 234
#define F_CMS_NDOCP 235
#define F_CMS_APPOGGIO 236
#define F_CMS_CONTRATTO 237
#define F_CMS_ANNOC 238
#define F_CMS_NROCONT 239
#define F_CMS_DATAGARA 240
#define F_CMS_IMPORTOB 241
#define F_CMS_RIBASSO 242
#define F_CMS_AUMENTO 243
#define F_CMS_GARANZIA 244
#define F_CMS_ANTICIPO 245
#define F_CMS_DATAANTIC 246
#define F_CMS_DATAULT 247
#define F_CMS_DATAULTP 248
#define F_CMS_DATACOLL 249
#define F_CMS_DATACOLLP 250
#define F_CMS_DATAGAR 251
#define F_CMS_SALMIN 252
#define F_CMS_CODATT 256
#define F_CMS_CODDITTA 257
#define F_CMS_INDETR 258
#define F_CMS_FINAN 259
#define F_CMS_FORN 260
#define F_CMS_SICUREZZA 263
#define F_CMS_CODIVA 264
#define F_CMS_IMPRODUTTIVA 265
#define F_CMS_MAG 353
#define F_CMS_DESCMAG 354
#define H_CMS_MAG 355
#define F_CMS_DEP 356
#define F_CMS_DESCDEP 357
#define F_CMS_LISPR 358
#define F_CMS_DLISPR 359
#define F_CMS_LISCN 360
#define F_CMS_DLISCN 361
#define F_CMS_CONTSEP 362
#define F_CMS_DESCONTSEP 363
#define F_CMS_CDC1 401
#define F_CMS_CDC2 402
#define F_CMS_CDC3 403
#define F_CMS_CDC4 404
#define F_CMS_CDCDES1 405
#define F_CMS_CDCDES2 406
#define F_CMS_CDCDES3 407
#define F_CMS_CDCDES4 408
#define F_CMSPDA1 601
#define F_CMSPDA4 605
#define F_CMSDES1 701
#define F_CMSDES4 705
#define F_CMS_CODFIN 101
#define F_CMS_RAGFIN 102
#define F_CMS_NRIGABANFIN 103
#define F_CMS_IBANFIN 104
#define F_CMS_CUPFIN 105
#define F_CMS_CIGFIN 106
#define F_CMS_PERCFINFIN 107
#define F_CMS_DESCRFIN 108
#define F_CMS_DCUPFIN 171
#define F_CMS_DCIGFIN 172
#define F_CMS_GARAFIN 173
#define F_CMS_CODFOR 101
#define F_CMS_RAGFOR 102
#define F_CMS_NRIGABANFOR 103
#define F_CMS_IBANFOR 104
#define F_CMS_CUPFOR 105
#define F_CMS_CIGFOR 106
#define F_CMS_DCUPFOR 171
#define F_CMS_DCIGFOR 172
#define F_CMS_GARAFOR 173
#define F_CMS_ACRONIMO 174
#define F_CMS_TITLONG 175
#define F_CMS_COSTOKM 176
#define F_CMS_CODPRGFON 177
#define F_CMS_DATAREND 178

File diff suppressed because it is too large Load Diff