Changeset 51819 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Jul 2, 2014 6:20:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyImage-win.cpp
r51818 r51819 148 148 * SUP_MAKE_NT_VER_SIMPLE. */ 149 149 uint32_t g_uNtVerCombined; 150 #endif 151 152 #ifdef IN_RING3 153 /** Timestamp hack working around issues with old DLLs that we ship. */ 154 static uint64_t g_uBuildTimestampHack = 0; 150 155 #endif 151 156 … … 852 857 * certificate validation date. We must query that first to avoid 853 858 * potential issues re-entering the loader code from the callback. 859 * 860 * Update: Save the first timestamp we validate with build cert and 861 * use this as a minimum timestamp for further build cert 862 * validations. This works around issues with old DLLs that 863 * we sign against with our certificate (crt, sdl, qt). 854 864 */ 855 865 rc = RTLdrQueryProp(hLdrMod, RTLDRPROP_TIMESTAMP_SECONDS, &pNtViRdr->uTimestamp, sizeof(pNtViRdr->uTimestamp)); 856 866 if (RT_SUCCESS(rc)) 857 867 { 868 #ifdef IN_RING3 869 if ((fFlags & SUPHNTVI_F_REQUIRE_BUILD_CERT) && pNtViRdr->uTimestamp < g_uBuildTimestampHack) 870 pNtViRdr->uTimestamp = g_uBuildTimestampHack; 871 #endif 872 858 873 rc = RTLdrVerifySignature(hLdrMod, supHardNtViCallback, pNtViRdr, pErrInfo); 874 875 #ifdef IN_RING3 876 if ((fFlags & SUPHNTVI_F_REQUIRE_BUILD_CERT) && g_uBuildTimestampHack == 0 && RT_SUCCESS(rc)) 877 g_uBuildTimestampHack = pNtViRdr->uTimestamp; 878 #endif 879 859 880 860 881 /*
Note:
See TracChangeset
for help on using the changeset viewer.