mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-28 13:44:15 -04:00
[pki] add signature check on update downloads - part 1
* This is part of enhancement #158
This commit is contained in:
parent
e1d0ab73a5
commit
cd911ad738
9 changed files with 218 additions and 36 deletions
|
@ -2054,6 +2054,8 @@ void SaveVHD(void)
|
|||
/*
|
||||
* Main dialog callback
|
||||
*/
|
||||
extern BOOL CheckSignatureAttributes(const char* path);
|
||||
extern LONG ValidateSignature(HWND hDlg, const char* path);
|
||||
static INT_PTR CALLBACK MainCallback(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
static DWORD DeviceNum = 0, LastRefresh = 0;
|
||||
|
@ -2272,6 +2274,9 @@ static INT_PTR CALLBACK MainCallback(HWND hDlg, UINT message, WPARAM wParam, LPA
|
|||
break;
|
||||
#ifdef RUFUS_TEST
|
||||
case IDC_TEST:
|
||||
uprintf("CHK: %d", CheckSignatureAttributes("C:\\Downloads\\rufus-2.4.exe"));
|
||||
SetLastError(ValidateSignature(hDlg, "C:\\Downloads\\rufus-2.4.exe"));
|
||||
uprintf("VAL: %s", WindowsErrorString());
|
||||
break;
|
||||
#endif
|
||||
case IDC_ADVANCED:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue