NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
config.c File Reference

Connection Global Variables. More...

#include "config.h"
#include <stddef.h>
#include <config/lib.h>
#include <stdbool.h>
+ Include dependency graph for config.c:

Go to the source code of this file.


bool config_init_conn (struct ConfigSet *cs)
 Register conn config variables - Implements module_init_config_t -. More...


static struct ConfigDef ConnVars []
static struct ConfigDef ConnVarsSsl []
static struct ConfigDef ConnVarsGnutls []
static struct ConfigDef ConnVarsOpenssl []
static struct ConfigDef ConnVarsPartial []
static struct ConfigDef ConnVarsGetaddr []

Detailed Description

Connection Global Variables.

  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Definition in file config.c.

Variable Documentation

◆ ConnVars

struct ConfigDef ConnVars[]
Initial value:
= {
{ "account_command", DT_STRING | DT_COMMAND, 0, 0, NULL,
"Shell command to retrieve account credentials"
{ "connect_timeout", DT_NUMBER, 30, 0, NULL,
"Timeout for making network connections (-1 to wait indefinitely)"
{ "preconnect", DT_STRING, 0, 0, NULL,
"(socket) External command to run prior to opening a socket"
{ "tunnel", DT_STRING|DT_COMMAND, 0, 0, NULL,
"Shell command to establish a tunnel"
{ "tunnel_is_secure", DT_BOOL, true, 0, NULL,
"Assume a tunneled connection is secure"
{ NULL },
#define DT_BOOL
boolean option
Definition: types.h:30
#define DT_STRING
a string
Definition: types.h:41
#define DT_COMMAND
A command.
Definition: types.h:50
#define DT_NUMBER
a number
Definition: types.h:35

Definition at line 34 of file config.c.

◆ ConnVarsSsl

struct ConfigDef ConnVarsSsl[]

Definition at line 56 of file config.c.

◆ ConnVarsGnutls

struct ConfigDef ConnVarsGnutls[]
Initial value:
= {
{ "ssl_ca_certificates_file", DT_PATH|DT_PATH_FILE, 0, 0, NULL,
"File containing trusted CA certificates"
{ "ssl_min_dh_prime_bits", DT_NUMBER|DT_NOT_NEGATIVE, 0, 0, NULL,
"Minimum keysize for Diffie-Hellman key exchange"
{ NULL },
#define DT_PATH_FILE
Path is a file.
Definition: types.h:54
#define DT_PATH
a path to a file/directory
Definition: types.h:36
Negative numbers are not allowed.
Definition: types.h:47

Definition at line 100 of file config.c.

◆ ConnVarsOpenssl

struct ConfigDef ConnVarsOpenssl[]
Initial value:
= {
{ "entropy_file", DT_PATH|DT_PATH_FILE, 0, 0, NULL,
"(ssl) File/device containing random data to initialise SSL"
{ "ssl_use_sslv2", DT_BOOL, false, 0, NULL,
"(ssl) INSECURE: Use SSLv2 for authentication"
{ "ssl_use_system_certs", DT_BOOL, true, 0, NULL,
"(ssl) Use CA certificates in the system-wide store"
{ "ssl_usesystemcerts", DT_SYNONYM, IP "ssl_use_system_certs", IP "2021-02-11" },
{ NULL },
#define IP
Definition: set.h:54
#define DT_SYNONYM
synonym for another variable
Definition: types.h:42

Definition at line 114 of file config.c.

◆ ConnVarsPartial

struct ConfigDef ConnVarsPartial[]
Initial value:
= {
{ "ssl_verify_partial_chains", DT_BOOL, false, 0, NULL,
"(ssl) Allow verification using partial certificate chains"
{ NULL },

Definition at line 132 of file config.c.

◆ ConnVarsGetaddr

struct ConfigDef ConnVarsGetaddr[]
Initial value:
= {
{ "use_ipv6", DT_BOOL, true, 0, NULL,
"Lookup IPv6 addresses when making connections"
{ NULL },

Definition at line 143 of file config.c.