From bbbbec8844c5c432dc0802cdb6ac6d4731fe21ae Mon Sep 17 00:00:00 2001 From: Matthew Jackson <1085847+MattJackson@users.noreply.github.com> Date: Sun, 28 Jun 2026 21:45:58 -0700 Subject: [PATCH] 1.1.1: DiscInputs gains version; tests pull stride from inputs.version --- tests/key_sources.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/key_sources.rs b/tests/key_sources.rs index a4e1752..a9bdd2d 100644 --- a/tests/key_sources.rs +++ b/tests/key_sources.rs @@ -60,6 +60,7 @@ fn inputs(hash: &str) -> DiscInputs { DiscInputs { disc_hash: hash.into(), volume_id: [0u8; 16], + version: libfreemkv::aacs::AACS_MAJOR_UHD, mkb: Vec::new(), unit_key_ro: Vec::new(), samples: Vec::new(), @@ -69,7 +70,7 @@ fn inputs(hash: &str) -> DiscInputs { /// Resolve a source through the public trait over a `DiscInputsCtx`. fn resolve(src: &dyn KeySource, inp: &DiscInputs) -> Vec { - let ctx = DiscInputsCtx::new(inp, 2); + let ctx = DiscInputsCtx::new(inp); src.get_uk(&ctx) .expect("get_uk must not error for these fixtures") } @@ -127,7 +128,7 @@ fn keydb_source_missing_file_is_silent_ok_empty() { // source in the chain can still supply them. let src = KeydbSource::new("/nonexistent/path/keydb.cfg"); let inp = inputs(DISC_HASH); - let ctx = DiscInputsCtx::new(&inp, 2); + let ctx = DiscInputsCtx::new(&inp); assert!( src.get_uk(&ctx) .expect("missing keydb is Ok, not Err")