Florent Le Coz
b29d94444d
Close the epoll fd
2016-02-24 09:31:30 +01:00
Florent Le Coz
6ee80ad268
Fix the ordering of poll callbacks (recv, connect, send)
...
Because if we have a send event to signal the connection sucess + a recv
event to signal something to read on the socket, we need to first finish the
connect process before reading the available data. That’s what we do now.
2016-02-22 17:03:15 +01:00
Florent Le Coz
a13285d0ff
Rename BasicCredentialManager
2016-02-10 20:10:40 +01:00
Florent Le Coz
0864f2ab99
Quiet a warning
2016-01-13 16:39:08 +01:00
Florent Le Coz
1f8333f23f
Support a trusted SHA1 fingerprint to be configured for each IRC server
2016-01-04 13:47:27 +01:00
Florent Le Coz
6a7cd5eecf
Do not forget to call freeaddrinfo, fix a memleak
...
For the getaddrinfo call we added in the previous commit, to convert the IP
provided in the conf.
2015-12-03 20:41:48 +01:00
Florent Le Coz
05a82b810f
Display a better error when connection fails
...
The error should not tell “while reading” when we are just connecting.
2015-12-01 16:09:21 +01:00
Florent Le Coz
241768836d
Add the outgoing_bind option
...
Lets the admin choose a local address to bind each outgoing (IRC) socket.
2015-12-01 16:08:40 +01:00
Florent Le Coz
296a16fa75
Do not segfault when trying to send TLS data over a not-yet connected socket
2015-11-30 03:23:42 +01:00
Florent Le Coz
0620c8e589
Avoid leaking socket filedescriptors
...
When trying the various results of getaddrinfo, we forgot to close the
socket when one fails, before trying the next one.
Also use the destructor to make sure we do not have some other unrelated
leak.
2015-11-07 23:41:06 +01:00
Florent Le Coz
5ce9d3f142
Make the CA file configurable
2015-11-05 02:17:19 +01:00
Florent Le Coz
e8386bd14e
Provide an adhoc option to let user pass the cert verif for some IRC servers
2015-11-05 02:17:19 +01:00
Florent Le Coz
06db9b366a
Fix the build without botan, caused by credentials_manager
2015-11-02 17:31:35 +01:00
Florent Le Coz
4a51850173
Verify TLS certificate with the given hostname, instead of a hardcoded one
2015-11-02 17:15:32 +01:00
Florent Le Coz
f928f76272
Verify the remote TLS certificates using the system-wide trusted CAs
2015-11-02 03:26:13 +01:00
Florent Le Coz
ccd185d3f5
Remove a useless assignment
2015-10-31 06:18:29 +01:00
Florent Le Coz
142516a69b
Fix some trivial issues reported by cppcheck
2015-10-26 20:09:39 +01:00
Florent Le Coz
0fcba76c79
Fix a build issue when compiling without cares
2015-10-26 20:01:57 +01:00
Florent Le Coz
c8606e1858
Remove a unused_parameter warning
2015-10-26 02:45:20 +01:00
Florent Le Coz
f57a43f337
Remove some more debug thing
2015-10-26 02:43:33 +01:00
Florent Le Coz
ec53fc9315
Remove some debug thing that should not have been committed
2015-10-26 02:36:33 +01:00
Florent Le Coz
aa340e1c5e
Separate the DNS resolution logic from the TCP communication logic
...
fix #3137
2015-10-15 04:32:02 +02:00
Florent Le Coz
2928598e77
Catch TLS exceptions, close the connection and inform the user of the error
2015-09-22 03:59:14 +02:00
Florent Le Coz
45fd41eb38
Display the resolved IP in debug logs
2015-07-09 15:30:54 +02:00
Florent Le Coz
ece4b4969b
If hostname resolution fails, do not try all possible ports
2015-07-09 15:30:24 +02:00
Florent Le Coz
ac6a74595c
Send the cares error message before cleaning it
...
fix #3083
2015-07-09 14:35:29 +02:00
Florent Le Coz
4130f1679d
Check for timeouts on the DNS resolution using c-ares
...
ref #3083
2015-07-09 14:35:29 +02:00
Florent Le Coz
0af536a2be
Minor comment typo
2015-07-08 18:51:05 +02:00
Florent Le Coz
e1a7114c8d
louloulibs is directly included, instead of being a submodule
...
Because this is a nightmare to manage
2015-05-28 23:46:24 +02:00