Commit Graph
184 Commits
Author SHA1 Message Date
louiz’ fa3d44e7aa Use AI_NUMERICHOST when using getaddrinfo to bind() our client sockets 2017-02-28 23:34:11 +01:00
louiz’ d81cbc4a33 Use uname() instead of CMAKE_SYSTEM
fix #3235
2017-02-27 18:01:20 +01:00
louiz’ 679bf94192 Only call freeaddrinfo if an actual addrinfo struct has been allocated 2017-02-15 01:46:29 +01:00
louiz’ efb8a11c57 Add missing include 2017-02-15 01:27:45 +01:00
louiz’ 561bbe9c14 Fix a leak on getaddrinfo, thank you LeakSanitizer! 2017-02-15 01:19:36 +01:00
louiz’ fef585ad66 Surround ipv6 with [], and properly cleanup otherwise invalid domains
fix #2694 (yeah, it was closed, but it was badly fixed)
2017-02-15 01:07:32 +01:00
louiz’ 7f08cf83aa Little scopeguard cleanup, and add a test 2017-02-15 01:07:32 +01:00
louiz’ 835c650ef5 Actually, just use the C locale for the date formats
We don’t need any UTF-8 support here, and it’s more portable
2017-02-01 20:33:16 +01:00
louiz’ 479b718993 Only use the C.UTF-8 LANG value 2017-02-01 18:37:51 +01:00
louiz’ a5d35c2455 Add some missing ifndef for udns 2017-01-31 23:47:45 +01:00
louiz’ dd12936657 Do not require revocation info for a certificate to be valid
If anyone has any reason to believe this is a bad idea, please let me know.
2017-01-19 18:41:29 +01:00
louiz’ 81b21bfc26 Update INSTALL.rst to talk about botan-2, and give priority to 2 over 1.11 2017-01-10 23:27:01 +01:00
louiz’ 5e33b6184a Look for botan-2 in addition to botan-1.11 2017-01-10 23:02:24 +01:00
louiz’ e31ff3e9e9 Fix some issues found by sonar cube 2017-01-06 23:45:26 +01:00
louiz’ 6bf9cedbeb Add a missing errno include 2017-01-06 23:13:47 +01:00
louiz’ 17411e6b44 Fix an use-after-free
Because we “delete all node” and then we use the content of one of these
nodes we got earlier.
2017-01-06 23:09:17 +01:00
louiz’ 5b56007828 Use udns instead of c-ares
fix #3226
2017-01-06 22:58:18 +01:00
louiz’ 5a5bb7f632 Introduce a XmlSubNode class that automatically adds itself into its parent 2016-12-14 18:28:44 +01:00
louiz’ f512c9c666 e2e: test connection failure 2016-12-14 18:20:57 +01:00
louiz’ ca86189412 Include the <text/> element in stanza error when there IS a text 2016-12-13 23:57:19 +01:00
louiz’ 6b245ee64a Switch back to using std::cout instead of std::clog 2016-12-13 23:37:43 +01:00
louiz’ 810c4343c7 Remove the useless nullptr argument for the XmlNode constructor 2016-12-13 23:01:32 +01:00
louiz’ 2e4a9fe4c7 Include the optional <text/> node in the send_presence_error 2016-12-13 22:47:19 +01:00
louiz’ c65ae47549 Auto accept presence subscription 2016-12-12 00:39:03 +01:00
louiz’ f9c31cb129 The logger writes to std::clog 2016-12-10 03:59:26 +01:00
louiz’ 4cc3dc03fc The config module doesn’t use the logger at all 2016-12-10 03:59:00 +01:00
louiz’ e63f79169b Use an other implementation of a null_stream for the logger 2016-12-09 01:34:46 +01:00
louiz’ e1e740e35e Don’t use global static members but functions that return a reference to an internal static object
See https://github.com/randombit/botan/issues/761
2016-12-08 21:26:42 +01:00
louiz’ 7f2eb60737 Init some members of TcpClientSocketHandler 2016-12-08 18:41:12 +01:00
louiz’ 7a8b4e37a5 In time.cpp, use the en_US.UTF-8 locale, instead of en_US.utf-8
(which apparently doesn’t work on freebsd)
2016-12-08 02:53:39 +01:00
louiz’ 807ac95e79 Use a portable way to get the relative paths into __FILENAME__ 2016-12-08 02:33:35 +01:00
louiz’ 75778f4187 Add some missing includes 2016-12-07 18:29:02 +01:00
louiz’ 7784c56843 Update the verify_certificate_chain code to work with botan >= 1.11.34 as well 2016-12-04 22:20:55 +01:00
louiz’ a66c67e291 Add a missing ifdef botan 2016-12-04 16:26:32 +01:00
louiz’ 3ef78f4418 Add some missing botan includes 2016-12-04 16:19:43 +01:00
louiz’ 732f53d798 Clean a few more things 2016-12-04 16:15:21 +01:00
louiz’ 3f53db79c0 Use the new botan 1.11.32 Tls::Client API (but stay compatible with older ones) 2016-12-02 16:50:28 +01:00
louiz’ 5f9568ca20 TLS: Enable ecc point compression
If available in Botan.

There is an issue where, if botan supports it but we don’t enable it, then
the TLS handshake may fail with some servers
2016-12-02 11:30:27 +01:00
louiz’ 5cb534c960 move is_connecting outside of an ifdef 2016-11-16 23:13:37 +01:00
louiz’ 42e85d921b Remove some useless virtual method from SocketHandler 2016-11-16 23:07:27 +01:00
louiz’ 9dd0cf8f7a Fix an error on gcc 4.9, because it is so stupid it can’t find operator""s 2016-11-16 20:28:48 +01:00
louiz’ d90f75dc60 Trivial include cleanup 2016-11-16 20:03:01 +01:00
louiz’ ae445f0e59 Remove an unused variable 2016-11-16 20:02:44 +01:00
louiz’ 4ab3cd653f Fix some little compilation errors with some configs, from last commit 2016-11-15 00:49:55 +01:00
louiz’ d872c2b492 Support the ident protocol
fix #3211
2016-11-15 00:23:19 +01:00
louiz’ ed7e66471f Add missing cstring include for strerror 2016-11-11 03:03:42 +01:00
louiz’ 0c8adc85f7 Move all the connect() logic from TCPSocketHandler into a subclass
This way, TCPSocketHandler only deal with the message sending/receiving, not
the connect() or anything else.  This will be used for implementing servers
(because when a client is accepted, we don’t need all the connect() and dns
resolution stuff).
2016-11-11 02:54:48 +01:00
louiz’ b5beb04332 Remove a never reached (and non-sensical) error 2016-11-07 21:57:39 +01:00
louiz’ a52baa52e2 Workaround for debian and other old OS that do not have std::put_time 2016-11-07 20:26:28 +01:00
louiz’ 94cebfcd77 Add a missing <chrono> include 2016-11-07 14:49:51 +01:00