rodbus (C API) 1.3.1
Loading...
Searching...
No Matches
rodbus_tls_client_config_t Struct Reference

TLS client configuration. More...

#include <rodbus.h>

Data Fields

const char * dns_name
 Name expected to be in the presented certificate (only in RODBUS_CERTIFICATE_MODE_AUTHORITY_BASED) More...
 
const char * peer_cert_path
 Path to the PEM-encoded certificate of the peer. More...
 
const char * local_cert_path
 Path to the PEM-encoded local certificate. More...
 
const char * private_key_path
 Path to the the PEM-encoded private key. More...
 
const char * password
 Optional password if the private key file is encrypted. More...
 
rodbus_min_tls_version_t min_tls_version
 Minimum TLS version allowed. More...
 
rodbus_certificate_mode_t certificate_mode
 Certificate validation mode. More...
 
bool allow_server_name_wildcard
 If set to true, a '*' may be used for rodbus_tls_client_config_t::dns_name to bypass server name validation. More...
 

Detailed Description

TLS client configuration.

Field Documentation

◆ allow_server_name_wildcard

bool rodbus_tls_client_config_t::allow_server_name_wildcard

If set to true, a '*' may be used for rodbus_tls_client_config_t::dns_name to bypass server name validation.

◆ certificate_mode

rodbus_certificate_mode_t rodbus_tls_client_config_t::certificate_mode

Certificate validation mode.

◆ dns_name

const char* rodbus_tls_client_config_t::dns_name

Name expected to be in the presented certificate (only in RODBUS_CERTIFICATE_MODE_AUTHORITY_BASED)

◆ local_cert_path

const char* rodbus_tls_client_config_t::local_cert_path

Path to the PEM-encoded local certificate.

◆ min_tls_version

rodbus_min_tls_version_t rodbus_tls_client_config_t::min_tls_version

Minimum TLS version allowed.

◆ password

const char* rodbus_tls_client_config_t::password

Optional password if the private key file is encrypted.

Only PKCS#8 encrypted files are supported.

Pass empty string if the file is not encrypted.

◆ peer_cert_path

const char* rodbus_tls_client_config_t::peer_cert_path

Path to the PEM-encoded certificate of the peer.

◆ private_key_path

const char* rodbus_tls_client_config_t::private_key_path

Path to the the PEM-encoded private key.


The documentation for this struct was generated from the following file: