4ec9a8183d
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>
17 lines
764 B
Plaintext
17 lines
764 B
Plaintext
Copyright (C) 2022 Proxmox Server Solutions GmbH
|
|
|
|
This software is written by Proxmox Server Solutions GmbH <support@proxmox.com>
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|