Changeset 74692 in vbox
- Timestamp:
- Oct 8, 2018 6:48:31 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
include/iprt/crypto/applecodesign.h (modified) (1 diff)
-
include/iprt/crypto/pkcs7.h (modified) (2 diffs)
-
src/VBox/Runtime/common/asn1/oiddb.cfg (modified) (2 diffs)
-
src/VBox/Runtime/tools/RTSignTool.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/applecodesign.h
r74614 r74692 36 36 * @{ 37 37 */ 38 39 /** Apple developer ID for application signing. */ 40 #define RTCR_APPLE_CS_DEVID_APPLICATION_OID "1.2.840.113635.100.6.1.13" 41 /** Apple developer ID for installer signing. */ 42 #define RTCR_APPLE_CS_DEVID_INSTALLER_OID "1.2.840.113635.100.6.1.14" 43 /** Apple developer ID for kernel extension signing. */ 44 #define RTCR_APPLE_CS_DEVID_KEXT_OID "1.2.840.113635.100.6.1.18" 45 /** Apple certificate policy OID. */ 46 #define RTCR_APPLE_CS_CERTIFICATE_POLICY_OID "1.2.840.113635.100.5.1" 47 38 48 39 49 /** @name Apple code signing magic values for identifying blobs -
trunk/include/iprt/crypto/pkcs7.h
r69105 r74692 40 40 * @{ 41 41 */ 42 43 /** PKCS \#7 data object ID.*/ 44 #define RTCR_PKCS7_DATA_OID "1.2.840.113549.1.7.1" 45 /** PKCS \#7 signedData object ID. */ 46 #define RTCR_PKCS7_SIGNED_DATA_OID "1.2.840.113549.1.7.2" 47 /** PKCS \#7 envelopedData object ID. */ 48 #define RTCR_PKCS7_ENVELOPED_DATA_OID "1.2.840.113549.1.7.3" 49 /** PKCS \#7 signedAndEnvelopedData object ID. */ 50 #define RTCR_PKCS7_SIGNED_AND_ENVELOPED_DATA_OID "1.2.840.113549.1.7.4" 51 /** PKCS \#7 digestedData object ID. */ 52 #define RTCR_PKCS7_DIGESTED_DATA_OID "1.2.840.113549.1.7.5" 53 /** PKCS \#7 encryptedData object ID. */ 54 #define RTCR_PKCS7_ENCRYPTED_DATA_OID "1.2.840.113549.1.7.6" 42 55 43 56 … … 380 393 381 394 /** PKCS \#7 SignedData object ID. */ 382 #define RTCRPKCS7SIGNEDDATA_OID "1.2.840.113549.1.7.2"395 #define RTCRPKCS7SIGNEDDATA_OID RTCR_PKCS7_SIGNED_DATA_OID 383 396 384 397 /** PKCS \#7 SignedData version number 1. */ -
trunk/src/VBox/Runtime/common/asn1/oiddb.cfg
r69434 r74692 83 83 1.2.840.113549.1.9.16.2 = pkcs9-SMime-id-aa 84 84 1.2.840.113549.1.9.16.2.12 = pkcs9-id-aa-SigningCertificate 85 1.2.840.113549.1.9.16.2.14 = pkcs9-id-aa-Attributes 85 86 1.2.840.113549.1.9.25 = pkcs9-SMime-at 86 87 1.2.840.113549.1.9.25.1 = pkcs9-at-Pkcs15Token … … 89 90 1.2.840.113549.1.9.25.4 = pkcs9-at-SequenceNumber 90 91 1.2.840.113549.1.9.25.5 = pkcs9-at-Pkcs7PDU 92 1.2.840.113635.100.6.1.13 = apple-cs-ext-DevId-Application 93 1.2.840.113635.100.6.1.14 = apple-cs-ext-DevId-Installer 94 1.2.840.113635.100.6.1.18 = apple-cs-ext-DevId-KernelExt 95 1.2.840.113635.100.5.1 = apple-cert-policy 96 1.2.840.113635.100.4.13 = apple-eku-packageSign 97 #1.2.840.113635.100.9.1 = apple-??? 91 98 1.3.6 = dod 92 99 1.3.6.1 = dod-Internet -
trunk/src/VBox/Runtime/tools/RTSignTool.cpp
r74672 r74692 86 86 /** Pointer to the decoded SignedData inside the ContentInfo member. */ 87 87 PRTCRPKCS7SIGNEDDATA pSignedData; 88 /** Pointer to the indirect data content. */89 PRTCRSPCINDIRECTDATACONTENT pIndData;90 88 91 89 /** Newly encoded raw signature. … … 143 141 { 144 142 RTCrPkcs7ContentInfo_Delete(&pThis->ContentInfo); 145 pThis->pIndData = NULL;146 143 pThis->pSignedData = NULL; 147 pThis->pIndData = NULL;148 144 RTMemFree(pThis->pbBuf); 149 145 pThis->pbBuf = NULL; … … 199 195 if (!strcmp(pThis->pSignedData->ContentInfo.ContentType.szObjId, RTCRSPCINDIRECTDATACONTENT_OID)) 200 196 { 201 pThis->pIndData = pThis->pSignedData->ContentInfo.u.pIndirectDataContent;202 Assert(p This->pIndData);197 PRTCRSPCINDIRECTDATACONTENT pIndData = pThis->pSignedData->ContentInfo.u.pIndirectDataContent; 198 Assert(pIndData); 203 199 204 200 /* … … 212 208 if (RT_SUCCESS(rc)) 213 209 { 214 rc = RTCrSpcIndirectDataContent_CheckSanityEx(p This->pIndData,210 rc = RTCrSpcIndirectDataContent_CheckSanityEx(pIndData, 215 211 pThis->pSignedData, 216 212 RTCRSPCINDIRECTDATACONTENT_SANITY_F_ONLY_KNOWN_HASH, … … 223 219 RTMsgError("PKCS#7 sanity check failed for '%s': %Rrc - %s\n", pThis->pszFilename, rc, ErrInfo.szMsg); 224 220 } 221 else if (!strcmp(pThis->pSignedData->ContentInfo.ContentType.szObjId, RTCR_PKCS7_DATA_OID)) 222 { /* apple code signing */ } 225 223 else if (!fCatalog) 226 224 RTMsgError("Unexpected the signed content in '%s': %s (expected %s)", pThis->pszFilename,
Note:
See TracChangeset
for help on using the changeset viewer.

