VirtualBox

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


Ignore:
Timestamp:
Nov 21, 2016 2:35:37 PM (8 years ago)
Author:
vboxsync
Message:

SUP,IPRT: If link time validation fails with VERR_CR_X509_CPV_NOT_VALID_AT_TIME, retry with current time.

File:
1 edited

Legend:

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

    r62724 r64731  
    437437        if (RT_SUCCESS(rc))
    438438            RTMsgInfo("'%s' is valid.\n", pszFilename);
    439         else
     439        else if (rc == VERR_CR_X509_CPV_NOT_VALID_AT_TIME)
     440        {
     441            RTTIMESPEC Now;
     442            pState->uTimestamp = RTTimeSpecGetSeconds(RTTimeNow(&Now));
     443            rc = RTLdrVerifySignature(hLdrMod, VerifyExeCallback, pState, RTErrInfoInitStatic(pStaticErrInfo));
     444            if (RT_SUCCESS(rc))
     445                RTMsgInfo("'%s' is valid now, but not at link time.\n", pszFilename);
     446        }
     447        if (RT_FAILURE(rc))
    440448            RTMsgError("RTLdrVerifySignature failed on '%s': %Rrc - %s\n", pszFilename, rc, pStaticErrInfo->szMsg);
    441449    }
Note: See TracChangeset for help on using the changeset viewer.

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