Zero Trust networking SDK for C++ with ZAP transport support.
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .cmake .. -DZT_SDK_C_DIR=/path/to/zt-sdk-c/buildcmake .. -DHANZO_ZT_WITH_ZAP=ON#include <hanzo/zt/context.hpp>
#include <hanzo/zt/auth.hpp>
#include <hanzo/zt/config.hpp>
auto creds = std::make_shared<hanzo::zt::HanzoJwtCredentials>(
hanzo::zt::HanzoJwtCredentials::resolve()
);
auto config = hanzo::zt::ConfigBuilder()
.controller_url("https://zt-api.hanzo.ai")
.credentials(creds)
.billing(true)
.build();
hanzo::zt::ZtContext ctx(std::move(config));
ctx.authenticate();
auto conn = ctx.dial("my-service");