This commit is contained in:
DavidXanatos 2023-08-27 11:06:36 +02:00
parent dbb01ef7cf
commit d870afd192
2 changed files with 4 additions and 2 deletions

View File

@ -770,7 +770,10 @@ _FX NTSTATUS KphValidateCertificate()
Verify_CertInfo.level = eCertMaxLevel; Verify_CertInfo.level = eCertMaxLevel;
} }
else if (level && _wcsicmp(level, L"LARGE") == 0) { // 2 years - personal else if (level && _wcsicmp(level, L"LARGE") == 0) { // 2 years - personal
Verify_CertInfo.level = eCertAdvanced; if(CERT_IS_TYPE(Verify_CertInfo, eCertPatreon))
Verify_CertInfo.level = eCertStandard2;
else
Verify_CertInfo.level = eCertAdvanced;
expiration_date.QuadPart = cert_date.QuadPart + KphGetDateInterval(0, 0, 2); // 2 years expiration_date.QuadPart = cert_date.QuadPart + KphGetDateInterval(0, 0, 2); // 2 years
} }
else if (level && _wcsicmp(level, L"MEDIUM") == 0) { // 1 year - personal else if (level && _wcsicmp(level, L"MEDIUM") == 0) { // 1 year - personal

View File

@ -98,7 +98,6 @@ void COptionsWindow::CreateGeneral()
COptionsWindow__AddCertIcon(ui.chkConfidential, true); COptionsWindow__AddCertIcon(ui.chkConfidential, true);
if (!CERT_IS_LEVEL(g_CertInfo, eCertAdvanced)) { if (!CERT_IS_LEVEL(g_CertInfo, eCertAdvanced)) {
COptionsWindow__AddCertIcon(ui.chkEncrypt, true); COptionsWindow__AddCertIcon(ui.chkEncrypt, true);
COptionsWindow__AddCertIcon(ui.chkAllowEfs, true);
} }