VirtualBox

Ignore:
Timestamp:
Oct 8, 2018 6:48:31 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/RTSignTool: Some adjustments for apple signatures. bugref:9232

File:
1 edited

Legend:

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

    r74672 r74692  
    8686    /** Pointer to the decoded SignedData inside the ContentInfo member. */
    8787    PRTCRPKCS7SIGNEDDATA        pSignedData;
    88     /** Pointer to the indirect data content. */
    89     PRTCRSPCINDIRECTDATACONTENT pIndData;
    9088
    9189    /** Newly encoded raw signature.
     
    143141{
    144142    RTCrPkcs7ContentInfo_Delete(&pThis->ContentInfo);
    145     pThis->pIndData    = NULL;
    146143    pThis->pSignedData = NULL;
    147     pThis->pIndData    = NULL;
    148144    RTMemFree(pThis->pbBuf);
    149145    pThis->pbBuf       = NULL;
     
    199195            if (!strcmp(pThis->pSignedData->ContentInfo.ContentType.szObjId, RTCRSPCINDIRECTDATACONTENT_OID))
    200196            {
    201                 pThis->pIndData = pThis->pSignedData->ContentInfo.u.pIndirectDataContent;
    202                 Assert(pThis->pIndData);
     197                PRTCRSPCINDIRECTDATACONTENT pIndData = pThis->pSignedData->ContentInfo.u.pIndirectDataContent;
     198                Assert(pIndData);
    203199
    204200                /*
     
    212208                if (RT_SUCCESS(rc))
    213209                {
    214                     rc = RTCrSpcIndirectDataContent_CheckSanityEx(pThis->pIndData,
     210                    rc = RTCrSpcIndirectDataContent_CheckSanityEx(pIndData,
    215211                                                                  pThis->pSignedData,
    216212                                                                  RTCRSPCINDIRECTDATACONTENT_SANITY_F_ONLY_KNOWN_HASH,
     
    223219                    RTMsgError("PKCS#7 sanity check failed for '%s': %Rrc - %s\n", pThis->pszFilename, rc, ErrInfo.szMsg);
    224220            }
     221            else if (!strcmp(pThis->pSignedData->ContentInfo.ContentType.szObjId, RTCR_PKCS7_DATA_OID))
     222            { /* apple code signing */ }
    225223            else if (!fCatalog)
    226224                RTMsgError("Unexpected the signed content in '%s': %s (expected %s)", pThis->pszFilename,
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