mirror of
https://git.proxmox.com/git/proxmox
synced 2025-05-27 23:01:57 +00:00

taking over slighlty generified helpers and types: - subscription info and status - checking subscription status with shop - reading/writing local subscription-related files the perl-based code uses base64 with newlines for the data, and base64 without padding for the checksum. accordingly, calculate the checksum with and without newlines, and compare the decoded checksum instead of the encoded one. furthermore, the perl-based code encodes the subscription status using Capitalized values instead of lowercase, so alias those for the time being. PVE also stores the serverid as 'validdirectory', so add that as alias as well. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
7 lines
157 B
Rust
7 lines
157 B
Rust
mod subscription_info;
|
|
pub use subscription_info::{get_hardware_address, SubscriptionInfo, SubscriptionStatus};
|
|
|
|
pub mod check;
|
|
pub mod files;
|
|
pub mod sign;
|