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

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

Issue 2934373002: Record Code Signature of Downloaded DMG files (Closed)
Patch Set: adjusted test file path names Created 3 years, 6 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
Index: chrome/utility/safe_browsing/mac/udif.h
diff --git a/chrome/utility/safe_browsing/mac/udif.h b/chrome/utility/safe_browsing/mac/udif.h
index fbb17c9280743e2611deba7d9955657f8e175413..3bb1aa7f46fd632dcf31c0a8f6ef5aa39fb94d70 100644
--- a/chrome/utility/safe_browsing/mac/udif.h
+++ b/chrome/utility/safe_browsing/mac/udif.h
@@ -51,6 +51,11 @@ class UDIFParser {
// If this returns false, it is not legal to call any other methods.
bool Parse();
+ uint64_t GetDmgSignatureLength();
+
+ // Returns a pointer to the buffer storing the blob of DMG signature data.
+ uint8_t* GetDmgSignatureData();
Robert Sesek 2017/06/26 18:56:33 This should return |const std::vector<uint8_t>&|.
mortonm 2017/06/27 16:36:23 Done.
+
// Returns the number of partitions in this UDIF image.
size_t GetNumberOfPartitions();
@@ -79,6 +84,8 @@ class UDIFParser {
// All blocks in the UDIF image.
std::vector<std::unique_ptr<const UDIFBlock>> blocks_;
uint16_t block_size_; // The image's block size, in bytes.
+ uint8_t* signature_blob_data_; // Data that comprises the DMG signature
+ uint64_t signature_blob_length_; // Length of the signature in bytes
DISALLOW_COPY_AND_ASSIGN(UDIFParser);
};

Powered by Google App Engine
This is Rietveld 408576698