NNG_TLS_CONFIG(5)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

✨ 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 πŸ‘‘


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