Changeset 74692 in vbox for trunk/src/VBox/Runtime/tools/RTSignTool.cpp
- Timestamp:
- Oct 8, 2018 6:48:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.