diff options
author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2018-10-30 13:01:29 +0000 |
---|---|---|
committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2018-10-30 13:01:29 +0000 |
commit | da2514ee668aae1292d9a202e21b2e8e1fe0255f (patch) | |
tree | 55377e7207761e0504b9316fab6ed62bb3f0ffff /src/VBox/Runtime/tools/RTSignTool.cpp | |
parent | 57f68f618b1faf40d8670c2765510f9042fa36a2 (diff) | |
download | VirtualBox-svn-da2514ee668aae1292d9a202e21b2e8e1fe0255f.tar.gz |
IPRT: Workaround for leap seconds and seconds rounding error on OS X in their DER_CFDateToUTCTime() function. bugref:9232
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@75176 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/Runtime/tools/RTSignTool.cpp')
-rw-r--r-- | src/VBox/Runtime/tools/RTSignTool.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/VBox/Runtime/tools/RTSignTool.cpp b/src/VBox/Runtime/tools/RTSignTool.cpp index bbfeed7a294..291014970e2 100644 --- a/src/VBox/Runtime/tools/RTSignTool.cpp +++ b/src/VBox/Runtime/tools/RTSignTool.cpp @@ -1802,8 +1802,16 @@ static int HandleShowExeWorkerPkcs7DisplayAttrib(PSHOWEXEPKCS7 pThis, size_t off /* Signing time (PKCS \#9), use pSigningTime. */ case RTCRPKCS7ATTRIBUTETYPE_SIGNING_TIME: - RTPrintf("%sTODO: RTCRPKCS7ATTRIBUTETYPE_SIGNING_TIME! %u bytes\n", - pThis->szPrefix, pAttr->uValues.pSigningTime->SetCore.Asn1Core.cb); + for (uint32_t i = 0; i < pAttr->uValues.pSigningTime->cItems; i++) + { + PCRTASN1TIME pTime = pAttr->uValues.pSigningTime->papItems[i]; + char szTS[RTTIME_STR_LEN]; + RTTimeToString(&pTime->Time, szTS, sizeof(szTS)); + if (pAttr->uValues.pSigningTime->cItems == 1) + RTPrintf("%s %s (%.*s)\n", pThis->szPrefix, szTS, pTime->Asn1Core.cb, pTime->Asn1Core.uData.pch); + else + RTPrintf("%s #%u: %s (%.*s)\n", pThis->szPrefix, i, szTS, pTime->Asn1Core.cb, pTime->Asn1Core.uData.pch); + } break; /* Microsoft timestamp info (RFC-3161) signed data, use pContentInfo. */ |