NeoMutt  2025-12-11-769-g906513
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
TlsSockData Struct Reference

This array needs to be large enough to hold all the possible values support by NeoMutt. More...

+ Inheritance diagram for TlsSockData:
+ Collaboration diagram for TlsSockData:

Data Fields

gnutls_session_t session
 GNUTLS session.
 
gnutls_certificate_credentials_t xcred
 GNUTLS certificate credentials.
 
- Data Fields inherited from Connection
struct ConnAccount account
 Account details: username, password, etc.
 
unsigned int ssf
 Security strength factor, in bits (see notes)
 
char inbuf [1024]
 Buffer for incoming traffic.
 
int bufpos
 Current position in the buffer.
 
int fd
 Socket file descriptor.
 
int available
 Amount of data waiting to be read.
 
void * sockdata
 Backend-specific socket data.
 
int(* open )(struct Connection *conn)
 
int(* read )(struct Connection *conn, char *buf, size_t count)
 
int(* write )(struct Connection *conn, const char *buf, size_t count)
 
int(* poll )(struct Connection *conn, time_t wait_secs)
 
int(* close )(struct Connection *conn)
 

Detailed Description

This array needs to be large enough to hold all the possible values support by NeoMutt.

The initialized values are just placeholders–the array gets overwrriten in tls_negotiate() depending on the $ssl_use_* options.

Note: gnutls_protocol_set_priority() was removed in GnuTLS version 3.4 (2015-04). TLS 1.3 support wasn't added until version 3.6.5. Therefore, no attempt is made to support $ssl_use_tlsv1_3 in this code. TLS socket data -

Definition at line 81 of file gnutls.c.

Field Documentation

◆ session

gnutls_session_t TlsSockData::session

GNUTLS session.

Definition at line 83 of file gnutls.c.

◆ xcred

gnutls_certificate_credentials_t TlsSockData::xcred

GNUTLS certificate credentials.

Definition at line 84 of file gnutls.c.


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