louiz’
479b718993
Only use the C.UTF-8 LANG value
2017-02-01 18:37:51 +01:00
louiz’
5eb5e9e0af
ci: add a packaging:debian job, based on the debian branch
2017-02-01 18:16:27 +01:00
louiz’
a5d35c2455
Add some missing ifndef for udns
2017-01-31 23:47:45 +01:00
louiz’
45f7396c8d
Cancel the IRC server linger timer when we try to-rejoin a channel on it
2017-01-25 19:55:45 +01:00
louiz’
b660a47367
grammar: than <-> as
2017-01-22 21:32:37 +01:00
louiz’
5d801ddcd0
Add a linger_time configuration option on IRC servers
2017-01-22 21:31:50 +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’
3699463e2a
Refactor and split the Dockerfiles, to build a base without litesql
2017-01-17 23:42:02 +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’
3ae4937fb4
Add missing <algorithm> include for last commit
2017-01-10 00:21:15 +01:00
louiz’
6ececd9f39
Only try to join chans only once, even if we received multiple presences
...
ref #3228
2017-01-10 00:18:59 +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’
eecb95352e
Add libasan and libubsan in the test docker images
2017-01-04 01:53:53 +01:00
louiz’
493b0d1754
Remove the PrintBuildParameter make target
2017-01-04 01:46:38 +01:00
louiz’
3cd0f7bbc0
Use fsanitize=address and undefined in debug builds if ubsan and asan are there
2017-01-04 01:44:46 +01:00
louiz’
57e4f2a89f
The “build” badge links to a more useful URL
2017-01-04 01:22:10 +01:00
louiz’
16feed7e9e
Update the DockerFiles to include openssl
2016-12-24 16:20:50 +01:00
louiz’
94f7a18c01
Update the doc to avoid using “” or "" and other chars
2016-12-24 16:20:50 +01:00
louiz’
37200bc61e
CI: Use our own registry for docker images
2016-12-24 00:49:20 +01:00
louiz’
e397fc837e
Send iq error/result when the user changed a MODE command with an iq
...
And add tests for all the mode changes
2016-12-18 17:21:15 +01:00
louiz’
36a9eb0e00
Use the codecov badge instead of the gitlab coverage one
...
[skip-ci]
2016-12-14 22:54:01 +01:00
louiz’
452bf1756b
Test the TLS connection
2016-12-14 19:52:51 +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’
4792c70635
Send a presence error from the room, when receiving command ERR_BADCHANNELKEY
...
fix #2886
2016-12-13 14:48:41 +01:00
louiz’
2e4a9fe4c7
Include the optional <text/> node in the send_presence_error
2016-12-13 22:47:19 +01:00
louiz’
35e1155232
Remove a line from a WIP that should not have been added
2016-12-12 00:43:39 +01:00
louiz’
59a73c93ec
Do not send an “not-implemented” error when receiving an iq error
2016-12-12 00:39:56 +01:00
louiz’
c65ae47549
Auto accept presence subscription
2016-12-12 00:39:03 +01:00
louiz’
e45902ba26
ci: make it two uploads and flag them (e2e, and test_suite)
2016-12-11 21:47:02 +01:00
louiz’
8bae00716e
ci: upload our own total_coverage.info to codecov
...
Is a lot faster, and is more consistent
2016-12-11 21:36:00 +01:00
louiz’
fc50888074
Run codecov upload from the root directory
2016-12-11 17:18:55 +01:00
louiz’
eca31ce8db
Do not change the nick when joining a second room with a different nick
...
As the doc says, the nick changes must be explicit in an already joined
room, and not when joining a room.
2016-12-11 17:05:52 +01:00
louiz’
f653906f9d
Add a None type for the Iid class (when the iid is completely empty)
2016-12-11 16:34:38 +01:00
louiz’
36252ad217
ci: sonar-qube upload is allowed to fail
2016-12-11 13:51:11 +01:00
louiz’
b4223288ca
Add a codecov.yml file to ignore the tests/ directory
2016-12-10 20:12:05 +01:00
louiz’
4860201d8c
Add a make coverage target to merge all other coverages, and upload to codecov
2016-12-10 20:11:30 +01:00
louiz’
3961df3d54
ci: Do not try to gem install coveralls-lcov
2016-12-10 17:06:53 +01:00
louiz’
45e8de8e00
Upload the coverage results to coveralls
2016-12-10 15:48:41 +01:00
louiz’
10c126a286
Do not remove the .info generated by lcov
2016-12-10 15:40:56 +01:00
louiz’
379fe026fb
Properly convert the data into a number of seconds by using duration_cast
2016-12-10 04:15:49 +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’
0a45b09665
e2e: remove the log_message step, because it causes race conditions
...
After printing the message, it calls “call_soon(run_scenario)”, and
sometimes, if a stanza handler has already been queued, then that handler
will be called BEFORE the “run_scenario” function could be run, and so no
stanza_checker had the possibility to be set.
2016-12-09 00:50:16 +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’
6fee8394f0
Fix the locales in the docker test images
2016-12-08 09:39:43 +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’
7f577130e7
ci: Print the locals before running
2016-12-08 01:15:40 +01:00
louiz’
44101362df
ci: Remove openbsd job for now
...
[skip ci]
2016-12-08 01:04:17 +01:00
louiz’
dac2119777
CI: refactor, and enable some specific test only on the master project
...
Because some of the jobs (the one using ssh runners, freebsd and openbsd)
use runners that are only available on my own project and not forks (for
security reasons), and some other jobs (coverity and sonar-qube) use private
variables to be able to run. So, all these jobs would fail if run on a fork
project.
2016-12-08 00:56:26 +01:00
louiz’
75778f4187
Add some missing includes
2016-12-07 18:29:02 +01:00
louiz’
91f768a6d4
Force the freebsd build to use clang++
2016-12-08 00:49:25 +01:00
louiz’
344d951253
ci: Don’t display g++ and clang++ --version
2016-12-08 00:45:04 +01:00
louiz’
bea3a3a803
ci: don’t set the locale env variablesx
2016-12-08 00:41:04 +01:00
louiz’
e6b09eed89
Add a freebsd ci test
2016-12-08 00:40:47 +01:00
louiz’
c454a80ed0
e2e: Accept even more unordered things in the connection sequence
2016-12-08 00:21:04 +01:00
louiz’
eb8f1cbc07
Avoid a potential nullptr dereference
2016-12-04 23:06:59 +01:00
louiz’
17f8cf64bd
CI: add the docker tag for coverity and sonar-qube jobs
2016-12-04 22:58:10 +01:00
louiz’
b65ff9edb8
In the docker images, use port 1113 for charybdis’ identd connection
2016-12-04 22:56:40 +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’
ad22be4171
Do not fail to build if litesql is not there
2016-11-25 09:22:24 +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’
b5a7c66bea
fix an “unused parameter” warning
2016-11-16 20:30:16 +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’
89868e4cda
e2e tests that the IRC server received an ident response
2016-11-16 20:03:23 +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’
c41d003cbf
Update the doc to say that we support xep 0059
2016-11-10 14:01:51 +01:00
louiz’
085c858c44
Start version 5.0
2016-11-09 18:11:37 +01:00
louiz’
9634cdaba2
Release version 4.0
2016-11-09 18:00:12 +01:00
louiz’
009aff52ac
Little update to the changelog
2016-11-09 17:11:55 +01:00
louiz’
b5beb04332
Remove a never reached (and non-sensical) error
2016-11-07 21:57:39 +01:00
louiz’
f36bccd7bb
Test the error on joining invalid room
2016-11-07 21:51: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’
597cfce4b8
Add <algorithm> back
2016-11-07 14:52:08 +01:00
louiz’
94cebfcd77
Add a missing <chrono> include
2016-11-07 14:49:51 +01:00
louiz’
962bac476c
Trivial refactor of get_user_bridge function
2016-11-07 14:43:52 +01:00
louiz’
7376831bc8
Add get-irc-connection-info adhoc command
...
fix #3171
2016-11-07 14:43:07 +01:00
louiz’
50d7590db4
Test the global and IRC server configure commands
2016-11-03 22:02:07 +01:00
louiz’
c70301e503
Fix the presences sent, when multiple resources join the virtual channel
...
fix #3216
2016-11-02 21:25:26 +01:00