mirror of
https://github.com/freemkv/freemkv-unlock.git
synced 2026-10-07 18:13:11 +00:00
find_by_drive_id gated the product-id-blind four-field fallback behind an empty product_id in 1.7.0, so a drive reporting a specific product_id (e.g. an LG BU40N reporting "BD-RE BU40N") no longer matched its catalog entry (generic "BD-RE"), silently skipping the LibreDrive firmware unlocker — the rip fell through to the AACS host-cert path (LD: no, AACS: yes). Run the four-field fallback (vendor/revision/vendor_specific/firmware_date) unconditionally but ambiguity-guarded: bind a UNIQUE catalog match regardless of the reported product_id (the real-drive case), and require the exact product_id only when catalogued siblings genuinely share the four-field identity — preserving the anti-mis-bind protection the 1.7.0 gate intended. Regression test added. Bump to 1.7.1.
32 lines
969 B
TOML
32 lines
969 B
TOML
[package]
|
|
name = "freemkv-unlock"
|
|
version = "1.7.1"
|
|
edition = "2024"
|
|
rust-version = "1.88"
|
|
license = "MIT"
|
|
description = "Unlock layer for the freemkv toolchain: the Unlocker contract + self-contained firmware/AACS/CSS unlocker modules. libfreemkv depends on this and dispatches via all_unlockers()."
|
|
repository = "https://github.com/freemkv/freemkv-unlock"
|
|
# NEVER crates.io: this crate carries drive firmware. Consumed only by git tag.
|
|
publish = false
|
|
|
|
[features]
|
|
# Off by default. Exposes ld's unlock-handshake wire format (`UNLOCK_MARKER`,
|
|
# `is_unlock_read_buffer`) for the bdemu test-emulator, which impersonates an
|
|
# ld-unlockable drive. Real clients never enable it and keep the generic API.
|
|
emulation = []
|
|
|
|
[dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
base64 = "0.23"
|
|
tracing = "0.1"
|
|
num-bigint = "0.5"
|
|
num-traits = "0.2"
|
|
sha1 = "0.10"
|
|
sha2 = "0.11"
|
|
aes = "0.9"
|
|
rand = "0.10"
|
|
|
|
[lints.clippy]
|
|
uninlined_format_args = "allow"
|