proxmox/proxmox-subscription/Cargo.toml
Fabian Grünbichler 4ec9a8183d add new proxmox-subscription crate
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>
2022-07-19 15:20:36 +02:00

30 lines
799 B
TOML

[package]
name = "proxmox-subscription"
version = "0.1.0"
authors = ["Proxmox Support Team <support@proxmox.com>"]
edition = "2018"
license = "AGPL-3"
description = "Proxmox subscription utilitites"
exclude = [ "debian" ]
[dependencies]
anyhow = "1.0"
base64 = "0.13"
hex = "0.4"
lazy_static = "1.4"
openssl = "0.10"
regex = "1.5"
serde = "1.0"
serde_json = "1.0"
proxmox-http = { path = "../proxmox-http", version = "0.6.3", default_features = false, features = ["client-trait", "http-helpers"] }
proxmox-serde = { path = "../proxmox-serde", version = "0.1.1", features = ["serde_json"]}
proxmox-sys = "0.3"
proxmox-time = "1.1"
proxmox-schema = { path = "../proxmox-schema", version = "1.3.3", features = ["api-macro"], optional = true }
[features]
default = []
api-types = ["proxmox-schema"]