2000-09-01 00:26:46 +00:00
|
|
|
int type; /* module_get_uniq_id("SERVER SETUP", 0) */
|
|
|
|
|
int chat_type; /* chat_protocol_lookup(xx) */
|
2000-08-26 15:39:44 +00:00
|
|
|
|
|
|
|
|
char *chatnet;
|
|
|
|
|
|
2001-02-20 16:23:28 +00:00
|
|
|
unsigned short family; /* 0 = default, AF_INET or AF_INET6 */
|
2000-08-26 15:39:44 +00:00
|
|
|
char *address;
|
|
|
|
|
int port;
|
|
|
|
|
char *password;
|
|
|
|
|
|
2015-09-10 01:02:44 +02:00
|
|
|
int sasl_mechanism;
|
|
|
|
|
char *sasl_password;
|
|
|
|
|
|
2016-10-16 13:46:58 +02:00
|
|
|
char *tls_cert;
|
|
|
|
|
char *tls_pkey;
|
|
|
|
|
char *tls_pass;
|
|
|
|
|
char *tls_cafile;
|
|
|
|
|
char *tls_capath;
|
|
|
|
|
char *tls_ciphers;
|
2016-10-16 14:39:00 +02:00
|
|
|
char *tls_pinned_cert;
|
|
|
|
|
char *tls_pinned_pubkey;
|
2003-11-16 17:53:55 +00:00
|
|
|
|
2000-08-26 15:39:44 +00:00
|
|
|
char *own_host; /* address to use when connecting this server */
|
2015-09-22 21:59:17 +02:00
|
|
|
IPADDR *own_ip4, *own_ip6; /* resolved own_address if not NULL */
|
2000-08-26 15:39:44 +00:00
|
|
|
|
|
|
|
|
time_t last_connect; /* to avoid reconnecting too fast.. */
|
|
|
|
|
|
2000-11-23 21:40:07 +00:00
|
|
|
unsigned int autoconnect:1;
|
2002-01-24 20:57:16 +00:00
|
|
|
unsigned int no_proxy:1;
|
2000-11-23 21:40:07 +00:00
|
|
|
unsigned int last_failed:1; /* if last connection attempt failed */
|
|
|
|
|
unsigned int banned:1; /* if we're banned from this server */
|
2001-03-07 23:57:19 +00:00
|
|
|
unsigned int dns_error:1; /* DNS said the host doesn't exist */
|
2016-10-16 13:46:58 +02:00
|
|
|
unsigned int use_tls:1; /* this connection uses TLS */
|
|
|
|
|
unsigned int tls_verify:1;
|
2000-08-26 15:39:44 +00:00
|
|
|
|
|
|
|
|
GHashTable *module_data;
|