VirtualBox

Changeset 74692 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Oct 8, 2018 6:48:31 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125610
Message:

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

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asn1/oiddb.cfg

    r69434 r74692  
    83831.2.840.113549.1.9.16.2         = pkcs9-SMime-id-aa
    84841.2.840.113549.1.9.16.2.12      = pkcs9-id-aa-SigningCertificate
     851.2.840.113549.1.9.16.2.14      = pkcs9-id-aa-Attributes
    85861.2.840.113549.1.9.25           = pkcs9-SMime-at
    86871.2.840.113549.1.9.25.1         = pkcs9-at-Pkcs15Token
     
    89901.2.840.113549.1.9.25.4         = pkcs9-at-SequenceNumber
    90911.2.840.113549.1.9.25.5         = pkcs9-at-Pkcs7PDU
     921.2.840.113635.100.6.1.13       = apple-cs-ext-DevId-Application
     931.2.840.113635.100.6.1.14       = apple-cs-ext-DevId-Installer
     941.2.840.113635.100.6.1.18       = apple-cs-ext-DevId-KernelExt
     951.2.840.113635.100.5.1          = apple-cert-policy
     961.2.840.113635.100.4.13         = apple-eku-packageSign
     97#1.2.840.113635.100.9.1         = apple-???
    91981.3.6                           = dod
    92991.3.6.1                         = dod-Internet
  • 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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette