VirtualBox

Changeset 70895 in vbox for trunk/include


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.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mangling.h

    r70481 r70895  
    22532253# define RTThreadWaitNoResume                           RT_MANGLER(RTThreadWaitNoResume)
    22542254# define RTThreadYield                                  RT_MANGLER(RTThreadYield)
     2255# define RTTimeCompare                                  RT_MANGLER(RTTimeCompare)
    22552256# define RTTimeDbgBad                                   RT_MANGLER(RTTimeDbgBad)
    22562257# define RTTimeDbgExpired                               RT_MANGLER(RTTimeDbgExpired)
  • trunk/include/iprt/time.h

    r69105 r70895  
    787787
    788788/**
     789 * Compares two normalized time structures.
     790 *
     791 * @retval  0 if equal.
     792 * @retval  -1 if @a pLeft is earlier than @a pRight.
     793 * @retval  1 if @a pRight is earlier than @a pLeft.
     794 *
     795 * @param   pLeft       The left side time.  NULL is accepted.
     796 * @param   pRight      The right side time.  NULL is accepted.
     797 *
     798 * @note    A NULL time is considered smaller than anything else.  If both are
     799 *          NULL, they are considered equal.
     800 */
     801RTDECL(int) RTTimeCompare(PCRTTIME pLeft, PCRTTIME pRight);
     802
     803/**
    789804 * Gets the current nanosecond timestamp.
    790805 *
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