#include <pulp/runtime/crypto.hpp>#include <string>#include <string_view>#include <optional>#include <vector>#include <cstdint>Go to the source code of this file.
Classes | |
| struct | pulp::runtime::LicenseInfo |
| Parsed license key data. More... | |
| class | pulp::runtime::LicenseValidator |
| License key validator — checks v1 RSA-signed or v2 AES-256-GCM keys. More... | |
| class | pulp::runtime::LicenseGenerator |
| License key generator (server-side utility). More... | |
| struct | pulp::runtime::OnlineActivationOptions |
| Transport policy for OnlineActivation. More... | |
| struct | pulp::runtime::OnlineActivation |
| Online license activation flow. More... | |
Namespaces | |
| namespace | pulp |
| namespace | pulp::runtime |
Enumerations | |
| enum class | pulp::runtime::LicenseFormatVersion { pulp::runtime::V1 = 1 , pulp::runtime::V2 = 2 } |
| License-key format version. More... | |
| enum class | pulp::runtime::LicenseStatus { pulp::runtime::Valid , pulp::runtime::Expired , pulp::runtime::InvalidSignature , pulp::runtime::InvalidFormat , pulp::runtime::MachineIdMismatch , pulp::runtime::NotFound } |
| License key status. More... | |
Functions | |
| std::optional< LicenseFormatVersion > | pulp::runtime::detect_license_format (std::string_view license_key) |
| Detect the format version of a license key without parsing the payload. | |
| std::optional< std::string > | pulp::runtime::migrate_v1_to_v2 (std::string_view v1_license_key, std::string_view v1_public_key_pem, const uint8_t *v2_secret_32, size_t v2_secret_size) |
| Re-encode a v1 license key as v2 using the supplied 32-byte secret. | |
Variables | |
| constexpr LicenseFormatVersion | pulp::runtime::kCurrentLicenseFormat |
| Latest format emitted by LicenseGenerator. | |