Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hanzozt/zt-sdk-cpp

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hanzo ZT C++ SDK

Zero Trust networking SDK for C++ with ZAP transport support.

Building

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build .

With libzt (optional)

cmake .. -DZT_SDK_C_DIR=/path/to/zt-sdk-c/build

With ZAP support (requires Cap'n Proto)

cmake .. -DHANZO_ZT_WITH_ZAP=ON

Usage

#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");

About

Hanzo Zero Trust C++ SDK with ZAP transport

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.