nanomsg next generation NNG  
Home GitHub Documentation

This documentation is for version v1.2.2 of nng, but the latest released version is v1.8.0. see the documentation for v1.8.0 for the most up-to-date information.
nng_tls_config(5)

SYNOPSIS

#include <nng/supplemental/tls/tls.h>

typedef struct nng_tls_config nng_tls_config;

DESCRIPTION

An nng_tls_config represents a single TLS configuration object, which can be used to configure TLS servers and clients.

Configuration data includes details such as certificate chains used for validation of remote peers, local key and certificate material, server names, and so forth. Additionally, a configuration can be used either in client mode, or in server mode.

Configuration objects may be shared, and are reference counted. However once a configuration is used, it enters a read-only state that precludes further modifications to the configuration.

Messages are allocated using the nng_tls_config_alloc() function, and are deallocated using the nng_tls_config_free() function.

NNG Reference Manual vv1.2.2 © 2019 Staysail Systems, Inc, © 2018 Capitar IT Group BV
This document is supplied under the MIT License.
nanomsg™ and nng™ are trademarks of Garrett D'Amore.