diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-08-17 20:28:24 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-08-17 21:49:09 +0200 |
| commit | 56a6b3277b7acb7fcfac97ef9667467d764ea490 (patch) | |
| tree | a695d68bb0f1205a0008a3c22b9f6ee3df7e3be0 /src/asset_reader.h | |
| parent | 3e07c602fdbce92a2562980ebefb39a8df95eefe (diff) | |
Make use of HMAC optional.ignore-hmac
Diffstat (limited to 'src/asset_reader.h')
| -rw-r--r-- | src/asset_reader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asset_reader.h b/src/asset_reader.h index dbd2761b..380474af 100644 --- a/src/asset_reader.h +++ b/src/asset_reader.h @@ -47,8 +47,8 @@ template <class R, class F> class AssetReader : public boost::noncopyable { public: - explicit AssetReader (Asset const * asset, boost::optional<Key> key, Standard standard) - : _crypto_context (new DecryptionContext (key, standard)) + explicit AssetReader (Asset const * asset, boost::optional<Key> key, Standard standard, bool check_hmac = true) + : _crypto_context (new DecryptionContext(key, standard, check_hmac)) { _reader = new R (); DCP_ASSERT (asset->file ()); |
