mirror of
https://github.com/freemkv/freemkv-unlock.git
synced 2026-10-07 18:13:11 +00:00
53d9e15d3d1a132d0c0f3a13eafb3a1ef90d8ba9
Version updates were never configured here -- only security alerts, which report but never open a pull request. So the absence of Dependabot PRs was not "nothing to update", it was "nothing was checking". Updates target `dev`, never `main`. main is a release pointer that release.sh moves to each tag, so a bot commit on it would put work there that no tag contains -- the exact state that aborted the 1.6.2 cascade at its last step, and pointing a scheduled bot at main would recreate it weekly. Minor and patch bumps are grouped into one PR rather than one per crate: eight repos times a handful of dependencies is a volume nobody reads, and an unread PR queue is indistinguishable from no updates at all. The freemkv crates are excluded. They depend on each other by git tag, re-pinned by release.sh inside the release commit, and Dependabot cannot see that cascade -- a PR bumping one could pin a version whose tag does not exist yet.
freemkv-unlock
The unlock layer for the freemkv toolchain.
An unlocker removes a drive-level bus-encryption barrier so the drive serves readable (de-bus'd / de-scrambled) sectors. Content-key decryption is a separate concern — the consumer's job.
This crate defines the Unlocker contract and a generic SCSI transport
contract, and holds the self-contained unlocker modules. The consumer
(libfreemkv) depends on this crate and
dispatches through all_unlockers(); it never names an individual unlocker, and
clients of libfreemkv are oblivious to unlockers entirely (as they are to the
SCSI layer).
use freemkv_unlock::UnlockError;
// Drive-prep: try each unlocker's feature unlock until one claims the drive.
// `NotApplicable` means "not this unlocker's drive" — move on; a transport
// error means a dead bus — abort. `unlock_bus` follows the same contract for
// removing per-disc bus encryption.
for u in freemkv_unlock::all_unlockers() {
match u.unlock_features(&mut scsi, &ctx) {
Ok(unlocked) => return Ok(unlocked),
Err(UnlockError::NotApplicable) => continue,
Err(e) => return Err(e),
}
}
To remove an unlocker, delete its module directory and its one line in
all_unlockers() — nothing else changes.
License: MIT.
Languages
Rust
100%