NeoMutt  2020-08-07-1-gab41a1
Teaching an old dog new tricks
DOXYGEN
private.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_CONN_PRIVATE_H
24 #define MUTT_CONN_PRIVATE_H
25 
26 #include <stddef.h>
27 #include <stdbool.h>
28 #include <time.h>
29 
30 struct Connection;
31 
32 extern const char * C_CertificateFile;
33 extern short C_ConnectTimeout;
34 extern const char * C_EntropyFile;
35 extern const char * C_Preconnect;
36 extern const char * C_SslCaCertificatesFile;
37 extern const char * C_SslCiphers;
38 extern const char * C_SslClientCert;
39 extern bool C_SslForceTls;
40 extern short C_SslMinDhPrimeBits;
41 extern unsigned char C_SslStarttls;
42 extern bool C_SslUseSslv2;
43 extern bool C_SslUseSslv3;
44 extern bool C_SslUseTlsv11;
45 extern bool C_SslUseTlsv12;
46 extern bool C_SslUseTlsv13;
47 extern bool C_SslUseTlsv1;
48 extern bool C_SslUsesystemcerts;
49 extern bool C_SslVerifyDates;
50 extern bool C_SslVerifyHost;
51 extern bool C_SslVerifyPartialChains;
52 extern const char * C_Tunnel;
53 extern bool C_TunnelIsSecure;
54 extern bool C_UseIpv6;
55 
56 int raw_socket_close(struct Connection *conn);
57 int raw_socket_open (struct Connection *conn);
58 int raw_socket_poll (struct Connection *conn, time_t wait_secs);
59 int raw_socket_read (struct Connection *conn, char *buf, size_t len);
60 int raw_socket_write(struct Connection *conn, const char *buf, size_t count);
61 
62 void mutt_tunnel_socket_setup(struct Connection *conn);
63 
64 #endif /* MUTT_CONN_PRIVATE_H */
int raw_socket_close(struct Connection *conn)
Close a socket - Implements Connection::close()
Definition: raw.c:360
const char * C_SslCiphers
Config: (ssl) Ciphers to use when using SSL.
Definition: config.c:43
bool C_SslVerifyDates
Config: (ssl) Verify the dates on the server certificate.
Definition: config.c:56
const char * C_CertificateFile
Config: (ssl) File containing trusted certificates.
Definition: config.c:41
An open network connection (socket)
Definition: connection.h:34
int raw_socket_poll(struct Connection *conn, time_t wait_secs)
Checks whether reads would block - Implements Connection::poll()
Definition: raw.c:322
bool C_SslVerifyHost
Config: (ssl) Verify the server&#39;s hostname against the certificate.
Definition: config.c:57
const char * C_Preconnect
Config: External command to run prior to opening a socket.
Definition: config.c:37
short C_ConnectTimeout
Config: Timeout for making network connections (-1 to wait indefinitely)
Definition: config.c:36
unsigned char C_SslStarttls
Config: (ssl) Use STARTTLS on servers advertising the capability.
Definition: config.c:46
bool C_SslForceTls
Config: (ssl) Require TLS encryption for all connections.
Definition: config.c:45
const char * C_Tunnel
Config: Shell command to establish a tunnel.
Definition: config.c:38
int raw_socket_write(struct Connection *conn, const char *buf, size_t count)
Write data to a socket - Implements Connection::write()
Definition: raw.c:292
const char * C_EntropyFile
Config: (ssl) File/device containing random data to initialise SSL.
Definition: config.c:42
bool C_SslUsesystemcerts
bool C_SslUseTlsv13
Config: (ssl) Use TLSv1.3 for authentication.
Definition: config.c:55
bool C_SslUseSslv3
Config: (ssl) INSECURE: Use SSLv3 for authentication.
Definition: config.c:51
short C_SslMinDhPrimeBits
Config: Minimum keysize for Diffie-Hellman key exchange.
Definition: config.c:64
bool C_SslUseSslv2
int raw_socket_read(struct Connection *conn, char *buf, size_t len)
Read data from a socket - Implements Connection::read()
Definition: raw.c:262
bool C_SslUseTlsv11
Config: (ssl) Use TLSv1.1 for authentication.
Definition: config.c:53
bool C_UseIpv6
Config: Lookup IPv6 addresses when making connections.
Definition: config.c:67
int raw_socket_open(struct Connection *conn)
Open a socket - Implements Connection::open()
Definition: raw.c:116
void mutt_tunnel_socket_setup(struct Connection *conn)
sets up tunnel connection functions
Definition: tunnel.c:233
bool C_TunnelIsSecure
Config: Assume a tunneled connection is secure.
Definition: config.c:39
const char * C_SslCaCertificatesFile
Config: File containing trusted CA certificates.
Definition: config.c:63
const char * C_SslClientCert
Config: (ssl) File containing client certificates.
Definition: config.c:44
bool C_SslUseTlsv1
Config: (ssl) Use TLSv1 for authentication.
Definition: config.c:52
bool C_SslVerifyPartialChains
Config: (ssl) Allow verification using partial certificate chains.
Definition: config.c:59
bool C_SslUseTlsv12
Config: (ssl) Use TLSv1.2 for authentication.
Definition: config.c:54