Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Unified Diff: chrome/utility/safe_browsing/mac/udif.cc

Issue 2145603002: Update UDIFResourceFile struct definition with code signature data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/safe_browsing/mac/udif.cc
diff --git a/chrome/utility/safe_browsing/mac/udif.cc b/chrome/utility/safe_browsing/mac/udif.cc
index 90fde88ca673dce9d79304dfbc5becff37326b70..d690995c8a1c494605f54262a3ac79a2654c8b2f 100644
--- a/chrome/utility/safe_browsing/mac/udif.cc
+++ b/chrome/utility/safe_browsing/mac/udif.cc
@@ -70,16 +70,21 @@ struct UDIFResourceFile {
uint64_t plist_offset; // Offset and length of the blkx plist.
uint64_t plist_length;
- uint8_t reserved1[120];
+ uint8_t reserved1[64];
+
+ uint64_t code_signature_offset;
+ uint64_t code_signature_length;
+
+ uint8_t reserved2[40];
UDIFChecksum master_checksum;
uint32_t image_variant;
uint64_t sector_count;
- uint32_t reserved2;
uint32_t reserved3;
uint32_t reserved4;
+ uint32_t reserved5;
};
static void ConvertBigEndian(uuid_t* uuid) {
@@ -102,6 +107,8 @@ static void ConvertBigEndian(UDIFResourceFile* file) {
ConvertBigEndian(&file->data_checksum);
ConvertBigEndian(&file->plist_offset);
ConvertBigEndian(&file->plist_length);
+ ConvertBigEndian(&file->code_signature_offset);
+ ConvertBigEndian(&file->code_signature_length);
ConvertBigEndian(&file->master_checksum);
ConvertBigEndian(&file->image_variant);
ConvertBigEndian(&file->sector_count);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698