Security: switch from component sha256 checking to certificate checking.

This commit is contained in:
Don HO 2019-05-10 09:35:25 +02:00
parent f548db82ed
commit 01d8349b1f
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
2 changed files with 3 additions and 3 deletions

View File

@ -42,8 +42,8 @@
using namespace std; using namespace std;
SecurityMode SecurityGard::_securityMode = sm_sha256; //SecurityMode SecurityGard::_securityMode = sm_sha256;
//SecurityMode SecurityGard::_securityMode = sm_certif; SecurityMode SecurityGard::_securityMode = sm_certif;
SecurityGard::SecurityGard() SecurityGard::SecurityGard()
{ {

View File

@ -80,7 +80,7 @@ private:
// Code signing certificate // Code signing certificate
std::wstring _signer_display_name = TEXT("Notepad++"); std::wstring _signer_display_name = TEXT("Notepad++");
std::wstring _signer_subject = TEXT("C=FR, S=Ile-de-France, L=Saint Cloud, O=\"Notepad++\", CN=\"Notepad++\""); std::wstring _signer_subject = TEXT("C=FR, S=Ile-de-France, L=Saint Cloud, O=\"Notepad++\", CN=\"Notepad++\"");
std::wstring _signer_key_id = TEXT("42C4C5846BB675C74E2B2C90C69AB44366401093"); std::wstring _signer_key_id = TEXT("ED255D9151912E40DF048A56288E969A8D0DAFA3");
bool _doCheckRevocation = false; bool _doCheckRevocation = false;
bool _doCheckChainOfTrust = false; bool _doCheckChainOfTrust = false;