openziti / ziti-sdk-c

A C-based sdk for delivering secure applications over a Ziti Network
https://docs.openziti.io/docs/reference/developer/sdk/ziti-sdk-c
Apache License 2.0
72 stars 14 forks source link

Refactor ziti_dump to optionally print json #447

Open sabedevops opened 2 years ago

sabedevops commented 2 years ago

As written, ziti_dump() takes a printer, but cannot be directly adapted to print json without supplying an alternate dump function.

It would be useful to be able communicate this information from the ZET through its socket.

qrkourier commented 2 years ago

There may be ramifications for how this is used by ziti-edge-tunnel: https://github.com/openziti/ziti-tunnel-sdk-c/issues/494