VirtualBox

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


Ignore:
Timestamp:
Oct 30, 2018 1:01:29 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126258
Message:

IPRT: Workaround for leap seconds and seconds rounding error on OS X in their DER_CFDateToUTCTime() function. bugref:9232

File:
1 edited

Legend:

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

    r74767 r75176  
    18031803        /* Signing time (PKCS \#9), use pSigningTime. */
    18041804        case RTCRPKCS7ATTRIBUTETYPE_SIGNING_TIME:
    1805             RTPrintf("%sTODO: RTCRPKCS7ATTRIBUTETYPE_SIGNING_TIME! %u bytes\n",
    1806                      pThis->szPrefix, pAttr->uValues.pSigningTime->SetCore.Asn1Core.cb);
     1805            for (uint32_t i = 0; i < pAttr->uValues.pSigningTime->cItems; i++)
     1806            {
     1807                PCRTASN1TIME pTime = pAttr->uValues.pSigningTime->papItems[i];
     1808                char szTS[RTTIME_STR_LEN];
     1809                RTTimeToString(&pTime->Time, szTS, sizeof(szTS));
     1810                if (pAttr->uValues.pSigningTime->cItems == 1)
     1811                    RTPrintf("%s %s (%.*s)\n", pThis->szPrefix, szTS, pTime->Asn1Core.cb, pTime->Asn1Core.uData.pch);
     1812                else
     1813                    RTPrintf("%s #%u: %s (%.*s)\n", pThis->szPrefix, i, szTS, pTime->Asn1Core.cb, pTime->Asn1Core.uData.pch);
     1814            }
    18071815            break;
    18081816
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