Changeset 51862 in vbox for trunk/src/VBox/Runtime/common/crypto/spc-core.cpp
- Timestamp:
- Jul 3, 2014 11:51:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/crypto/spc-core.cpp
r51770 r51862 39 39 40 40 41 RTDECL(int) RTCrSpcSerializedPageHashes V2_UpdateDerivedData(PRTCRSPCSERIALIZEDPAGEHASHESV2pThis)41 RTDECL(int) RTCrSpcSerializedPageHashes_UpdateDerivedData(PRTCRSPCSERIALIZEDPAGEHASHES pThis) 42 42 { 43 pThis->pData = (PCRTCRSPCPEIMAGEPAGEHASHES V2)pThis->RawData.Asn1Core.uData.pv;43 pThis->pData = (PCRTCRSPCPEIMAGEPAGEHASHES)pThis->RawData.Asn1Core.uData.pv; 44 44 return VINF_SUCCESS; 45 45 } … … 50 50 */ 51 51 52 RTDECL(PCRTCRSPCSERIALIZEDOBJECTATTRIBUTE) RTCrSpcIndirectDataContent_GetPeImageHashesV2(PCRTCRSPCINDIRECTDATACONTENT pIndData) 52 RTDECL(PCRTCRSPCSERIALIZEDOBJECTATTRIBUTE) 53 RTCrSpcIndirectDataContent_GetPeImageObjAttrib(PCRTCRSPCINDIRECTDATACONTENT pThis, 54 RTCRSPCSERIALIZEDOBJECTATTRIBUTETYPE enmType) 53 55 { 54 if (p IndData->Data.enmType == RTCRSPCAAOVTYPE_PE_IMAGE_DATA)56 if (pThis->Data.enmType == RTCRSPCAAOVTYPE_PE_IMAGE_DATA) 55 57 { 56 Assert(RTAsn1ObjId_CompareWithString(&p IndData->Data.Type, RTCRSPCPEIMAGEDATA_OID) == 0);58 Assert(RTAsn1ObjId_CompareWithString(&pThis->Data.Type, RTCRSPCPEIMAGEDATA_OID) == 0); 57 59 58 if ( p IndData->Data.uValue.pPeImage59 && p IndData->Data.uValue.pPeImage->T0.File.enmChoice == RTCRSPCLINKCHOICE_MONIKER60 && RTCrSpcSerializedObject_IsPresent(p IndData->Data.uValue.pPeImage->T0.File.u.pMoniker) )60 if ( pThis->Data.uValue.pPeImage 61 && pThis->Data.uValue.pPeImage->T0.File.enmChoice == RTCRSPCLINKCHOICE_MONIKER 62 && RTCrSpcSerializedObject_IsPresent(pThis->Data.uValue.pPeImage->T0.File.u.pMoniker) ) 61 63 { 62 if (p IndData->Data.uValue.pPeImage->T0.File.u.pMoniker->enmType == RTCRSPCSERIALIZEDOBJECTTYPE_ATTRIBUTES)64 if (pThis->Data.uValue.pPeImage->T0.File.u.pMoniker->enmType == RTCRSPCSERIALIZEDOBJECTTYPE_ATTRIBUTES) 63 65 { 64 Assert(RTUuidCompareStr(p IndData->Data.uValue.pPeImage->T0.File.u.pMoniker->Uuid.Asn1Core.uData.pUuid,66 Assert(RTUuidCompareStr(pThis->Data.uValue.pPeImage->T0.File.u.pMoniker->Uuid.Asn1Core.uData.pUuid, 65 67 RTCRSPCSERIALIZEDOBJECT_UUID_STR) == 0); 66 PCRTCRSPCSERIALIZEDOBJECTATTRIBUTES pData = p IndData->Data.uValue.pPeImage->T0.File.u.pMoniker->u.pData;68 PCRTCRSPCSERIALIZEDOBJECTATTRIBUTES pData = pThis->Data.uValue.pPeImage->T0.File.u.pMoniker->u.pData; 67 69 if (pData) 68 {69 70 for (uint32_t i = 0; i < pData->cItems; i++) 70 { 71 if (pData->paItems[i].enmType == RTCRSPCSERIALIZEDOBJECTATTRIBUTETYPE_PAGE_HASHES_V2) 72 { 73 Assert(RTAsn1ObjId_CompareWithString(&pData->paItems[i].Type, RTCRSPC_PE_IMAGE_HASHES_V2_OID) == 0); 71 if (pData->paItems[i].enmType == enmType) 74 72 return &pData->paItems[i]; 75 }76 }77 }78 73 } 79 74 }
Note:
See TracChangeset
for help on using the changeset viewer.