Skip to main content

Module hardware

Module hardware 

Source
Expand description

Hardware detection for license binding

This module provides functionality to detect hardware identifiers for binding licenses to specific machines.

§Pluggable environment

Use HardwareEnvironment to supply HardwareInfo for verification and attestation. The default implementation calls detect_hardware. Integrators can provide a custom implementation (for example TPM-derived material in the license HardwareBinding custom map) without modifying this crate.

Structs§

DefaultHardwareEnvironment
Default probe: MAC addresses, disk IDs, hostname, machine ID via detect_hardware.
FixedHardwareEnvironment
Fixed snapshot (tests, diagnostics, or air-gapped override).
HardwareInfo
Detected hardware information from the current machine

Enums§

HardwareBindingError
Hardware binding verification errors

Traits§

HardwareEnvironment
Supplies a snapshot of the current machine for license binding checks.

Functions§

default_hardware_environment
Shared default implementation used by LicenseVerifier and WitnessConfig.
detect_hardware
Detect hardware information from the current machine
verify_hardware_binding
Check if the current hardware matches the binding