VirtualBox

Ignore:
Timestamp:
Feb 7, 2018 11:14:02 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120721
Message:

IPRT: Added RTTimeCompare and made use of it in the RTAsn1Time methods instead of the range limited RTTimeSpecCompare. Makes certificates with expire time beyond year 3000 found on windows 10 insider builds (??) work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-time.cpp

    r69111 r70895  
    8181    if (!iDiff)
    8282    {
    83         RTTIMESPEC TsLeft;
    84         AssertReturn(RTTimeImplode(&TsLeft, &pLeft->Time), -1);
    85 
    86         iDiff = RTTimeSpecCompare(&TsLeft, pTsRight);
     83        RTTIME RightTime;
     84        iDiff = RTTimeCompare(&pLeft->Time, RTTimeExplode(&RightTime, pTsRight));
    8785    }
    8886
     
    172170    {
    173171        if (RTAsn1Time_IsPresent(pRight))
    174         {
    175             RTTIMESPEC TsLeft;
    176             AssertReturn(RTTimeImplode(&TsLeft, &pLeft->Time), -1);
    177 
    178             RTTIMESPEC TsRight;
    179             AssertReturn(RTTimeImplode(&TsRight, &pRight->Time), 1);
    180 
    181             iDiff = RTTimeSpecCompare(&TsLeft, &TsRight);
    182         }
     172            iDiff = RTTimeCompare(&pLeft->Time, &pRight->Time);
    183173        else
    184174            iDiff = -1;
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