mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 20:24:26 -04:00
[pki] add country code validation on signature check
* Also validate against the CN rather than the simple name, and require an exact match
This commit is contained in:
parent
f89f97d4ab
commit
e3fbfb30d3
4 changed files with 35 additions and 21 deletions
|
@ -3166,7 +3166,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||
// Look for a .ini file in the current app directory
|
||||
static_sprintf(ini_path, "%s\\rufus.ini", app_dir);
|
||||
fd = fopenU(ini_path, ini_flags); // Will create the file if portable mode is requested
|
||||
vc |= (safe_strcmp(GetSignatureName(NULL), cert_name[0]) == 0);
|
||||
vc |= (safe_strcmp(GetSignatureName(NULL, NULL), cert_name[0]) == 0);
|
||||
if (fd != NULL) {
|
||||
ini_file = ini_path;
|
||||
fclose(fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue