NNG_TLS_CONFIG(5)
β¨ NAME β¨
nng_tls_config β the TLS configuration object, aka the lil glow-up container for all your TLS settings π
πΈ SYNOPSIS πΈ
#include <nng/supplemental/tls/tls.h>
typedef struct nng_tls_config nng_tls_config;
π DESCRIPTION π
okay so bestie, an nng_tls_config is literally one single TLS configuration object, and you use it to configure both TLS servers and TLS clients. main character energy for both sides of the handshake fr fr π«Ά
The config data holds all the juicy details, like:
- certificate chains used for validation of remote peers π
- local key and certificate material π
- server names π
- and so forth β¨
and on top of all that, a configuration can be used either in client mode or in server mode β pick your vibe.
Configuration objects may be shared, and they are reference counted (iconic, honestly). BUT β and this is the part you cannot skip β once a configuration is used, it enters a read-only state that precludes further modifications to the configuration. it's giving "frozen in place, no take-backs" π§ no editing after that, periodt.
Messages are allocated using the nng_tls_config_alloc() function, and deallocated using the nng_tls_config_free() function. that's the whole lifecycle, babes π
π SEE ALSO π
nng_tls_config_alloc(3tls)nng_tls_config_auth_mode(3tls)nng_tls_config_ca_chain(3tls)nng_tls_config_own_cert(3tls)nng_tls_config_free(3tls)nng_tls_config_hold(3tls)nng_tls_config_server_name(3tls)nng(7)
and that's the whole page bestie, tysm for reading π₯Ήπ this one's straight out of the NNG Reference Manual, dated 2026-06-30, and the page itself is NNG_TLS_CONFIG(5) β go forth and configure responsibly, mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms