mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[RAPPS] Fix pinned certificate issuer check
This commit is contained in:
parent
35f3034879
commit
f77f5a30cf
1 changed files with 4 additions and 2 deletions
|
@ -50,7 +50,8 @@
|
|||
#include "misc.h"
|
||||
|
||||
#ifdef USE_CERT_PINNING
|
||||
#define CERT_ISSUER_INFO "US\r\nLet's Encrypt\r\nLet's Encrypt Authority X3"
|
||||
#define CERT_ISSUER_INFO_OLD "US\r\nLet's Encrypt\r\nLet's Encrypt Authority X3"
|
||||
#define CERT_ISSUER_INFO_NEW "US\r\nLet's Encrypt\r\nR3"
|
||||
#define CERT_SUBJECT_INFO "rapps.reactos.org"
|
||||
#endif
|
||||
|
||||
|
@ -832,7 +833,8 @@ unsigned int WINAPI CDownloadManager::ThreadFunc(LPVOID param)
|
|||
else
|
||||
{
|
||||
if (strcmp(subjectName, CERT_SUBJECT_INFO) ||
|
||||
strcmp(issuerName, CERT_ISSUER_INFO))
|
||||
(strcmp(issuerName, CERT_ISSUER_INFO_OLD) &&
|
||||
strcmp(issuerName, CERT_ISSUER_INFO_NEW)))
|
||||
{
|
||||
szMsgText.Format(IDS_MISMATCH_CERT_INFO, (char*)subjectName, (const char*)issuerName);
|
||||
bAskQuestion = true;
|
||||
|
|
Loading…
Reference in a new issue