13082 Commits

Author SHA1 Message Date
Adam
f9fd78c016 core_hostname_lookup: find answer record of the correct type instead of assuming it is first 2016-08-15 19:28:00 -04:00
Attila Molnar
c7a26bc216 Release v2.0.22 v2.0.22 2016-08-13 18:23:19 +02:00
Attila Molnar
a8c7c85ecd m_censor Fix possible incorrect cast of dest 2016-08-13 18:23:12 +02:00
Attila Molnar
e2dd99fa34 Fix more incorrect std::string::operator[] usage 2016-08-13 18:11:57 +02:00
Attila Molnar
96642de3b2 Update description of class EventHandler
Readable() and Writeable() was removed long ago
2016-08-11 11:23:38 +02:00
Attila Molnar
c6ebf05e02 Replace HandleEvent() references in the SocketEngine documentation with OnEventHandler*() 2016-08-11 11:19:28 +02:00
Attila Molnar
85456f0bd3 Remove virtual destructor of class Version
No classes inherit from it and it is only used as the return value from Module::GetVersion() which returns it by value
2016-08-11 10:58:21 +02:00
Attila Molnar
f09ca8cf45 socketengine_epoll Remove unused #define EP_DELAY 5 2016-08-11 10:56:47 +02:00
Attila Molnar
c528328748 Initialize more User and LocalUser fields using the init list 2016-08-10 17:30:02 +02:00
Attila Molnar
f87ad8e72c Update style of initializer lists in User and LocalUser constructors 2016-08-10 17:26:49 +02:00
Attila Molnar
5d7003df82 m_ssl_mbedtls Apply dummy CA workaround for client context 2016-08-10 16:17:40 +02:00
Attila Molnar
7770cd9854 Merge branch 'master+websocket' 2016-08-10 15:57:04 +02:00
Attila Molnar
a86e320ac1 m_ssl_* Add option to sslprofile controlling whether to request client certificates 2016-08-08 16:42:54 +02:00
Attila Molnar
40e42a47a7 Update comments for classes IOHookProvider and IOHook 2016-08-08 16:30:04 +02:00
Attila Molnar
0053cf0d24 Add WebSocket module 2016-08-08 16:17:27 +02:00
Attila Molnar
e67a57675e Add SHA1 module 2016-08-08 15:20:50 +02:00
Attila Molnar
8dbd80610a Keep multiple IOHookProvider references in class ListenSocket
This adds the <bind:hook> config option which works together with <bind:ssl>
2016-08-08 15:10:43 +02:00
Attila Molnar
4d36019385 Include <array> or <tr1/array> globally 2016-08-08 15:07:32 +02:00
Attila Molnar
2b3b0ce142 Change return type of ListenSocket::ResetIOHookProvider() to void
No code was using the return value
2016-08-08 15:06:41 +02:00
Attila Molnar
a7a0f69c6b Add StreamSocket::SendQueue::moveall() for moving data between sendqs 2016-08-08 15:04:17 +02:00
Attila Molnar
87602cd040 Add support for multiple IOHooks per StreamSocket 2016-08-08 15:02:28 +02:00
Attila Molnar
fd573d17ca Call StreamSocket::OnDataReady() from only one place
Call it whenever the recvq gets bigger than it was before the read
2016-08-08 14:39:09 +02:00
Attila Molnar
6466e3093a Extract code that reads data into a recvq from StreamSocket::DoRead() into ReadToRecvQ() 2016-08-08 14:37:22 +02:00
Attila Molnar
d8ac63cd83 Extract code that flushes the sendq from StreamSocket::DoWrite() into FlushSendQ() 2016-08-08 14:35:00 +02:00
Attila Molnar
eef55acb1d Add StreamSocket::GetModHook() for obtaining the IOHook belonging to a given module
Use it to simplify logic in all modules using or providing IOHooks
2016-08-08 14:31:49 +02:00
Attila Molnar
3a11a742ba Pass sendq to OnStreamSocketWrite 2016-08-08 14:28:02 +02:00
Attila Molnar
019914b67d Predeclare IOHookProvider, remove iohook.h include from socket.h 2016-08-08 14:24:40 +02:00
Attila Molnar
30a9cd0f5d Merge pull request #1196 from SaberUK/insp20+sha256
[2.0] Fix challenge auth when using m_hash_gnutls instead of m_sha256.
2016-08-08 10:57:04 +02:00
Peter Powell
25cdcdc777 Fix challenge auth when using m_hash_gnutls instead of m_sha256. 2016-08-05 20:56:56 +01:00
Attila Molnar
57b01bc958 Merge pull request #1193 from Adam-/insp20+banburst
Fix bursting channel bans
2016-08-02 10:16:24 +02:00
Adam
5f29158a5b Fix bursting channel bans 2016-08-01 09:28:22 -04:00
Attila Molnar
18fd234f73 Merge pull request #1191 from SaberUK/insp20+travis
[2.0] Force link sqlite3 on OS X when doing Travis builds.
2016-08-01 09:50:40 +02:00
Peter Powell
fe3b48692a Force link sqlite3 on OS X when doing Travis builds.
The system version of this library does not include support for pkg-config.
2016-07-28 15:32:13 +01:00
Peter Powell
4a12fc9d4b Add a method which calculates the maximum mask length. (#1171) 2016-07-22 12:26:11 +02:00
Christian Höltje
a46d0c010d Tell git to store .bat files as CRLF (#1030) 2016-07-22 12:20:44 +02:00
0x277F
c8602a4993 stripcolor now strips from part messages (#1175) 2016-07-22 12:12:05 +02:00
Attila Molnar
1f25ec70d1 m_ssl_openssl Verify DH params being non-NULL before setting it on the context
Fixes issue reported by @m4rkw on IRC
2016-07-22 12:04:35 +02:00
Attila Molnar
1a10d61b3d Merge pull request #1181 from SaberUK/insp20+null
[2.0] GCC should never assume that this can not be null.
2016-06-27 16:55:40 +02:00
Attila Molnar
aa2fa90c57 Merge pull request #1187 from SaberUK/master+431
Fix a minor oversight in ERR_NONICKNAMEGIVEN.
2016-06-27 16:52:13 +02:00
Peter Powell
1ca1c2c653 Fix a minor oversight in ERR_NONICKNAMEGIVEN. 2016-06-27 15:48:47 +01:00
Peter Powell
9401f1fbc3 GCC should never assume that this can not be null. 2016-06-27 15:41:27 +01:00
Attila Molnar
292c2b90c8 Merge pull request #1186 from SaberUK/master+build-system-cleanup
Pass INSPIRCD_VERBOSE through the environment to unit-cc.
2016-06-27 16:14:30 +02:00
Attila Molnar
1c9f97682f Merge pull request #1182 from SaberUK/master+431
Fix sending the wrong numeric when an empty new nick is received.
2016-06-27 16:13:18 +02:00
Peter Powell
0d7d6a9d09 Pass INSPIRCD_VERBOSE through the environment to unit-cc. 2016-06-27 00:35:16 +01:00
Peter Powell
ff53aa7282 Fix cleaning files generated by configure.
This is an oversight from f79a55616b5ff05d4f2e6b031a17be5668d1d3ea.
2016-06-27 00:35:15 +01:00
Peter Powell
5785411ac5 Fix sending the wrong numeric when an empty new nick is received. 2016-06-22 10:27:18 +01:00
Attila Molnar
86c3fde2fe m_ssl_gnutls, m_ssl_openssl After a read schedule another read if data remains in the buffer of the SSL library 2016-06-21 15:07:43 +02:00
Attila Molnar
925afed1b9 Don't exit on rehash if the pid file cannot be written 2016-06-17 12:04:12 +02:00
Attila Molnar
c050eb2d45 Add mbedTLS SSL module 2016-06-15 18:23:04 +02:00
Attila Molnar
cb43342a29 Stop processing the new connection in UserManager::AddUser() when an internal SocketEngine error happens and the user is quitted 2016-06-13 13:05:18 +02:00