C++ SDK
C++20 / Windows native / MSVC · LibreAuth native client · Protocol v2 available (Enterprise)
C++
C++20 / Windows native / MSVC
Setup Guide
libreauth_v2.hpp · authority.hpp · session_gate.hpp · ops_bridge ProcessCheckOps after Check · hardening.hpp · la_gate::Boot + AssertLicensed · libcurl + OpenSSL + libsodium + nlohmann/json
- Credentials: name + ownerid (10 characters)
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
cpp/README.md - Ed25519 key: from
init→ Response Signing - Test: Live API · Init docs
Install / Dependencies
Terminal
// v2: sdk/cpp/libreauth_v2.hpp
// deps: libcurl + OpenSSL + libsodium + nlohmann/json
// optional signed ops: sdk/cpp/ops_executor.hpp
Code Example
C++
la_gate::Boot(19079);
la::v2::Client::Config cfg{"AppName", "OWNER_ID_10", "https://host", "ED25519_PUBLIC_KEY"};
cfg.clientBuild = 19079;
la::v2::Client app(std::move(cfg), la::v2::NewDeviceKey());
auto init = app.Init();
la_gate::OnInit(init);
app.License(key, hw);
la_gate::MarkLicensed();
la_gate::EnforceHeartbeat(app.Check());
Protocol v2 (Enterprise)
INFO
Requires Enterprise plan. Endpoint
https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.Source: cpp/libreauth_v2.hpp
C++ · v2
la_gate::Boot(19079);
la::v2::Client::Config cfg{"AppName", "OWNER_ID_10", "https://host", "ED25519_PUBLIC_KEY"};
cfg.clientBuild = 19079;
la::v2::Client app(std::move(cfg), la::v2::NewDeviceKey());
auto init = app.Init();
la_gate::OnInit(init);
app.License(key, hw);
la_gate::MarkLicensed();
la_gate::EnforceHeartbeat(app.Check());
More Links
- ← All Client SDKs
- 1.x source: View README.md
- Protocol v2: View libreauth_v2.hpp · docs
- Interactive API docs
- Response Signing
- C++ detailed setup