NNG_TLS_OPTIONS(5) | NNG Reference Manual | NNG_TLS_OPTIONS(5) |
nng_tls_options - TLS-specific options
#include <nng/nng.h> #define NNG_OPT_TLS_AUTH_MODE "tls-authmode" #define NNG_OPT_TLS_CA_FILE "tls-ca-file" #define NNG_OPT_TLS_CERT_KEY_FILE "tls-cert-key-file" #define NNG_OPT_TLS_CONFIG "tls-config" #define NNG_OPT_TLS_SERVER_NAME "tls-server-name" #define NNG_OPT_TLS_VERIFIED "tls-verified" #define NNG_OPT_TLS_PEER_CN "tls-peer-cn" #define NNG_OPT_TLS_PEER_ALT_NAMES "tls-peer-alt-names"
This page documents the various standard options that can be set or retrieved on objects using TLS.
The option names should always be used by their symbolic definitions.
In the following list of options, the name of the option is supplied, along with the data type of the underlying value.
Some options are only meaningful or supported in certain contexts, or may have other access restrictions. An attempt has been made to include details about such restrictions in the description of the option.
Options for configuring TLS are deprecated and may
not be present in a future release. These options are
NNG_OPT_TLS_AUTH_MODE,
NNG_OPT_TLS_CA_FILE,
NNG_OPT_TLS_CERT_KEY_FILE, and
NNG_OPT_TLS_SERVER_NAME. Applications should switch
to using the NNG_OPT_TLS_CONFIG option and working
with nng_tls_config objects.
NNG_OPT_TLS_AUTH_MODE
NNG_OPT_TLS_CA_FILE
NNG_OPT_TLS_CERT_KEY_FILE
NNG_OPT_TLS_CONFIG
The caller should release the hold with
nng_tls_config_free() when it no longer needs the TLS
configuration object.
NNG_OPT_TLS_SERVER_NAME
NNG_OPT_TLS_VERIFIED
NNG_OPT_TLS_PEER_CN
NNG_OPT_TLS_PEER_ALT_NAMES
Generally, the following option values are also available for TLS objects, when appropriate for the context:
nng_options(5) nng_tcp_options(5) nng_tls_config(5), nng(7)
2025-01-05 |