diff --git a/Sandboxie/common/my_version.h b/Sandboxie/common/my_version.h index edde3fbf..a689d299 100644 --- a/Sandboxie/common/my_version.h +++ b/Sandboxie/common/my_version.h @@ -26,7 +26,7 @@ #define VERSION_MJR 5 #define VERSION_MIN 69 -#define VERSION_REV 7 +#define VERSION_REV 8 #define VERSION_UPD 0 #if VERSION_UPD > 0 diff --git a/Sandboxie/core/drv/verify.c b/Sandboxie/core/drv/verify.c index 9f899ece..4c22314c 100644 --- a/Sandboxie/core/drv/verify.c +++ b/Sandboxie/core/drv/verify.c @@ -882,6 +882,23 @@ _FX NTSTATUS KphValidateCertificate() Verify_CertInfo.level = eCertAdvanced1; expiration_date.QuadPart = -2; } + // todo: 01.09.2025: remove code for expired case LARGE + else if (_wcsicmp(level, L"LARGE") == 0) { // 2 years - personal + 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 + } + // todo: 01.09.2024: remove code for expired case MEDIUM + else if (_wcsicmp(level, L"MEDIUM") == 0) { // 1 year - personal + Verify_CertInfo.level = eCertStandard2; + } + // todo: 01.09.2024: remove code for expired case SMALL + else if (_wcsicmp(level, L"SMALL") == 0) { // 1 year - subscription + Verify_CertInfo.level = eCertStandard2; + Verify_CertInfo.type = eCertHome; + } else Verify_CertInfo.level = eCertStandard; } diff --git a/SandboxiePlus/version.h b/SandboxiePlus/version.h index 8eb585de..533a70bb 100644 --- a/SandboxiePlus/version.h +++ b/SandboxiePlus/version.h @@ -2,7 +2,7 @@ #define VERSION_MJR 1 #define VERSION_MIN 14 -#define VERSION_REV 7 +#define VERSION_REV 8 #define VERSION_UPD 0 #ifndef STR