VirtualBox

Changeset 74707 in vbox for trunk/src/VBox/Runtime/tools


Ignore:
Timestamp:
Oct 9, 2018 8:36:39 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125628
Message:

IPRT/ldr: Started on Mach-O code signature verification. bugref:9232

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/tools/RTSignTool.cpp

    r74692 r74707  
    14211421
    14221422
     1423    RTTIMESPEC Now;
     1424    bool       fTriedNow = false;
    14231425    rc = RTLdrQueryProp(hLdrMod, RTLDRPROP_TIMESTAMP_SECONDS, &pState->uTimestamp, sizeof(pState->uTimestamp));
     1426    if (rc == VERR_NOT_FOUND)
     1427    {
     1428        fTriedNow = true;
     1429        pState->uTimestamp = RTTimeSpecGetSeconds(RTTimeNow(&Now));
     1430        rc = VINF_SUCCESS;
     1431    }
    14241432    if (RT_SUCCESS(rc))
    14251433    {
     
    14271435        if (RT_SUCCESS(rc))
    14281436            RTMsgInfo("'%s' is valid.\n", pszFilename);
    1429         else if (rc == VERR_CR_X509_CPV_NOT_VALID_AT_TIME)
    1430         {
    1431             RTTIMESPEC Now;
     1437        else if (rc == VERR_CR_X509_CPV_NOT_VALID_AT_TIME && !fTriedNow)
     1438        {
    14321439            pState->uTimestamp = RTTimeSpecGetSeconds(RTTimeNow(&Now));
    14331440            rc = RTLdrVerifySignature(hLdrMod, VerifyExeCallback, pState, RTErrInfoInitStatic(pStaticErrInfo));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette