1 int type; /* module_get_uniq_id("SERVER SETUP", 0) */ 2 int chat_type; /* chat_protocol_lookup(xx) */ 3 4 char *chatnet; 5 6 unsigned short family; /* 0 = default, AF_INET or AF_INET6 */ 7 char *address; 8 int port; 9 char *password; 10 11 int sasl_mechanism; 12 char *sasl_password; 13 14 char *tls_cert; 15 char *tls_pkey; 16 char *tls_pass; 17 char *tls_cafile; 18 char *tls_capath; 19 char *tls_ciphers; 20 char *tls_pinned_cert; 21 char *tls_pinned_pubkey; 22 23 char *own_host; /* address to use when connecting this server */ 24 IPADDR *own_ip4, *own_ip6; /* resolved own_address if not NULL */ 25 26 time_t last_connect; /* to avoid reconnecting too fast.. */ 27 28 unsigned int autoconnect:1; 29 unsigned int no_proxy:1; 30 unsigned int last_failed:1; /* if last connection attempt failed */ 31 unsigned int banned:1; /* if we're banned from this server */ 32 unsigned int dns_error:1; /* DNS said the host doesn't exist */ 33 unsigned int use_tls:1; /* this connection uses TLS */ 34 unsigned int tls_verify:1; 35 36 GHashTable *module_data; 37