How open-license-manager/licensecc works
Licensecc is a C++ licensing and copy-protection library, with a companion customer-facing inspector. The principal workflow is an application requesting license verification; the library locates and parses license data, then applies validity, signature, and machine-identity checks and reports events through its API. Hardware identification draws on OS-specific system information, and date verification can use SNTP to detect a clock set back to retain an expired license. The inspector exposes license diagnostics and machine details. Internal flow is based on the excerpts and SOURCE INDEX; several connections to the unread main API implementation remain unverified.
Main entry points: Licensecc.cpp License engine · LicenseParser.cpp License parser · licensecc.h C/C++ API · hw_identifier.hpp Hardware identifier
Components 18
Application API
- C/C++ API
include/licensecc/licensecc.h - License engine
src/library/Licensecc.cpp - Public data types
include/licensecc/datatypes.h
License Processing
- License locator
src/library/locate - License parser
src/library/LicenseParser.cpp - INI reader
src/library/ini/SimpleIni.h - License limits
src/library/limits - Signature verification
src/library/os/signature_verifier.hpp - Audit events
src/library/base/EventRegistry.cpp
Machine And Time
- Hardware identifier
src/library/hw_identifier/hw_identifier.hpp - Identifier strategies
src/library/hw_identifier - Execution environment
src/library/os/execution_environment_common.cpp - OS information
src/library/os/os.h - Date verification
src/library/limits/date_verifier.cpp - SNTP client
src/library/sntp/sntp.h
Diagnostics
- License inspector
src/inspector/inspector.cpp
Other components
- Integrating application
- NTP server
Connections 18
- Integrating application → C/C++ API: requests verification
README.md - C/C++ API → License engine: delegates to
- License engine → License locator: obtains license data
- License locator → License parser: provides raw data
src/library/LicenseParser.cpp - License parser → INI reader: parses license data
src/library/LicenseParser.cpp - License parser → License locator: uses raw license data
src/library/LicenseParser.cpp - License parser → Audit events: records parse events
src/library/LicenseParser.cpp - License engine → License limits: checks limits
- License engine → Signature verification: verifies signature
- License engine → Hardware identifier: checks machine identity
- Hardware identifier → Execution environment: reads environment data
src/library/hw_identifier/hw_identifier.hpp - Hardware identifier → Identifier strategies: uses strategies
src/library/hw_identifier/hw_identifier.cpp - Execution environment → OS information: uses platform information
src/library/os/execution_environment_common.cpp - Date verification → SNTP client: queries reference time
src/library/limits/date_verifier.cpp - SNTP client → NTP server: sends time request
src/library/sntp/sntp.h - License inspector → C/C++ API: requests license checks
src/inspector/inspector.cpp - License inspector → OS information: queries system details
src/inspector/inspector.cpp - C/C++ API → Public data types: uses API structures
include/licensecc/licensecc.h