table of contents
NNG_TLS_OPTIONS(5) | NNG Reference Manual | NNG_TLS_OPTIONS(5) |
NAME¶
nng_tls_options - TLS-specific options
SYNOPSIS¶
#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"
DESCRIPTION¶
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.
TLS Options¶
NNG_OPT_TLS_AUTH_MODE
NNG_OPT_TLS_CA_FILE
NNG_OPT_TLS_CERT_KEY_FILE
NNG_OPT_TLS_CONFIG
Note
The caller should release the hold with
nng_tls_config_free() when it no longer needs the TLS
configuration object.
Tip
Use this option when more advanced TLS configuration is required.
NNG_OPT_TLS_SERVER_NAME
NNG_OPT_TLS_VERIFIED
NNG_OPT_TLS_PEER_CN
NNG_OPT_TLS_PEER_ALT_NAMES
Inherited Options¶
Generally, the following option values are also available for TLS objects, when appropriate for the context:
SEE ALSO¶
2024-10-11 |