summaryrefslogtreecommitdiff
path: root/src/verify.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-12 19:38:53 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-12 22:55:50 +0100
commit83c3a53c4b44b48823ecdece80bd6c246929ae0b (patch)
treedfc06f65273e74da82d0cb833a48473e9045a210 /src/verify.h
parentb12947937e4f55065f5940dcde96667a5518383d (diff)
Add --no-asset-hash-check and --asset-hash-check-maximum-size (DoM #2444).v1.8.56
Diffstat (limited to 'src/verify.h')
-rw-r--r--src/verify.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/verify.h b/src/verify.h
index 1ddb7066..77fc28b3 100644
--- a/src/verify.h
+++ b/src/verify.h
@@ -488,10 +488,21 @@ private:
};
+struct VerificationOptions
+{
+ ///< If set, any assets larger than this number of bytes will not have their hashes checked
+ boost::optional<boost::uintmax_t> maximum_asset_size_for_hash_check;
+ ///< true to check asset hashes (except those which match maximum_asset_size_for_hash_check)
+ ///< false to check no asset hashes.
+ bool check_asset_hashes = true;
+};
+
+
std::vector<VerificationNote> verify (
std::vector<boost::filesystem::path> directories,
boost::function<void (std::string, boost::optional<boost::filesystem::path>)> stage,
boost::function<void (float)> progress,
+ VerificationOptions options = {},
boost::optional<boost::filesystem::path> xsd_dtd_directory = boost::optional<boost::filesystem::path>()
);