VirtualBox

Changeset 71878 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 17, 2018 2:32:06 PM (7 years ago)
Author:
vboxsync
Message:

RTSignTool: Added a --prepend flag to the add-nested-cat-signature and add-nested-exe-signature, also fixed handling of more than 1 nested signature. [cleanup]

File:
1 edited

Legend:

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

    r71877 r71878  
    433433        if (RT_SUCCESS(rc))
    434434        {
    435             //PRTCRPKCS7CONTENTINFO pCntInfo = pAttr->uValues.pContentInfos->papItems[iPos];
    436             //rc = RTCrPkcs7ContentInfo_Clone(pCntInfo, &pSrc->ContentInfo, pAttr->Allocation.pAllocator);
    437             if (RT_SUCCESS(rc))
     435            if (cVerbosity > 0)
     436                RTMsgInfo("Added nested signature (#%u)", iActualPos);
     437            if (cVerbosity >= 3)
    438438            {
    439                 if (cVerbosity > 0)
    440                     RTMsgInfo("Added nested signature");
    441                 if (cVerbosity >= 3)
    442                 {
    443                     RTMsgInfo("SingerInfo dump after change:");
    444                     RTAsn1Dump(RTCrPkcs7SignerInfo_GetAsn1Core(pSignerInfo), 0, 2, RTStrmDumpPrintfV, g_pStdOut);
    445                 }
    446 
    447                 return RTEXITCODE_SUCCESS;
     439                RTMsgInfo("SingerInfo dump after change:");
     440                RTAsn1Dump(RTCrPkcs7SignerInfo_GetAsn1Core(pSignerInfo), 0, 2, RTStrmDumpPrintfV, g_pStdOut);
    448441            }
    449 
    450             RTMsgError("RTCrPkcs7ContentInfo_Clone failed: %Rrc", iPos);
    451         }
    452         else
    453             RTMsgError("RTCrPkcs7ContentInfos_Append failed: %Rrc", iPos);
     442            return RTEXITCODE_SUCCESS;
     443        }
     444
     445        RTMsgError("RTCrPkcs7ContentInfos_InsertEx failed: %Rrc", rc);
    454446    }
    455447    return RTEXITCODE_FAILURE;
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