]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
Attila Molnar [Mon, 3 Nov 2014 14:34:58 +0000 (15:34 +0100)]
m_httpd Remove unused container
Attila Molnar [Mon, 3 Nov 2014 14:34:20 +0000 (15:34 +0100)]
m_httpd Always timeout connections, set default timeout to 10 seconds
Attila Molnar [Sat, 1 Nov 2014 17:21:30 +0000 (18:21 +0100)]
Add stdalgo::isin() and use it to simplify code
Attila Molnar [Sat, 1 Nov 2014 17:17:04 +0000 (18:17 +0100)]
Add stdalgo::erase() and use it to simplify code
Attila Molnar [Mon, 27 Oct 2014 14:30:02 +0000 (15:30 +0100)]
Remove if (!this) check from ConfigTag::readString()
Attila Molnar [Mon, 27 Oct 2014 14:26:20 +0000 (15:26 +0100)]
Merge insp20
Attila Molnar [Mon, 27 Oct 2014 13:40:02 +0000 (14:40 +0100)]
m_ssl_openssl Store a pointer to the OpenSSLIOHook object in SSL objects
Attila Molnar [Sun, 26 Oct 2014 17:05:40 +0000 (18:05 +0100)]
Release v2.0.18
Attila Molnar [Sun, 26 Oct 2014 17:01:24 +0000 (18:01 +0100)]
Remove some dead code found by Coverity
Attila Molnar [Sat, 25 Oct 2014 01:58:49 +0000 (03:58 +0200)]
Merge pull request #944 from SaberUK/insp20+gnutls-rnd
[2.0] Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.
Peter Powell [Mon, 25 Aug 2014 12:04:17 +0000 (13:04 +0100)]
Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.
This is a modified version of
690c372 . Fixes #905.
Attila Molnar [Fri, 24 Oct 2014 23:16:02 +0000 (01:16 +0200)]
Merge pull request #940 from SaberUK/insp20+fix-makefile
[2.0] Fix some small bugs in the makefile template.
Peter Powell [Tue, 21 Oct 2014 21:05:51 +0000 (22:05 +0100)]
Use clang++ on FreeBSD 10 instead of g++.
Peter Powell [Tue, 21 Oct 2014 08:37:50 +0000 (09:37 +0100)]
Fix some small bugs in the makefile template.
- GCC in C++ mode should be called g++ not gcc.
- ICC in C++ mode should be called icpc not icc.
Attila Molnar [Thu, 23 Oct 2014 15:59:44 +0000 (17:59 +0200)]
m_delaymsg Add option to disallow NOTICEs too
Adam [Mon, 20 Oct 2014 19:14:54 +0000 (15:14 -0400)]
Fix m_banredirect causing bans added for hosts being rewritten as nicks
Attila Molnar [Wed, 22 Oct 2014 17:27:32 +0000 (19:27 +0200)]
Fail AAAA DNS queries if inet_ntop() fails
Attila Molnar [Wed, 22 Oct 2014 17:21:04 +0000 (19:21 +0200)]
Check the return value of getnameinfo() on Windows in insp_inet_ntop() and return NULL if it fails
Attila Molnar [Tue, 21 Oct 2014 22:25:05 +0000 (00:25 +0200)]
Set the parameter of -b to the banmask actually removed
This is needed because of the case insensitive match
Attila Molnar [Fri, 17 Oct 2014 16:46:47 +0000 (18:46 +0200)]
m_ssl_openssl Add compile time option that allows disabling renegotiations
Attila Molnar [Wed, 15 Oct 2014 16:27:20 +0000 (18:27 +0200)]
m_ssl_openssl Add compile time option to enable ECDH
Attila Molnar [Mon, 20 Oct 2014 18:48:23 +0000 (20:48 +0200)]
m_ssl_gnutls Add compile time option for allowing sha256 certificate fingerprints
Attila Molnar [Mon, 20 Oct 2014 18:42:17 +0000 (20:42 +0200)]
Update <nationalchars> tag documentation
Adam [Sat, 18 Oct 2014 18:28:50 +0000 (14:28 -0400)]
Fix watch away numerics, #937
Attila Molnar [Fri, 17 Oct 2014 13:40:01 +0000 (15:40 +0200)]
m_delayjoin Only send JOIN on mode change if the mode being changed is a prefix mode
Attila Molnar [Thu, 16 Oct 2014 19:18:29 +0000 (21:18 +0200)]
Initialize all fields of issl_session on module load in SSL modules
Attila Molnar [Thu, 16 Oct 2014 19:15:31 +0000 (21:15 +0200)]
Add interface to SSL modules that allows other modules to obtain the raw SSL session of a socket
Attila Molnar [Thu, 16 Oct 2014 19:07:25 +0000 (21:07 +0200)]
m_ssl_gnutls Refcount GnuTLS objects, free them when they are no longer in use instead of at /rehash ssl time
Attila Molnar [Wed, 15 Oct 2014 18:16:05 +0000 (20:16 +0200)]
m_ssl_openssl Fix debug message
Attila Molnar [Wed, 15 Oct 2014 18:13:00 +0000 (20:13 +0200)]
m_ssl_openssl Reset data_to_write for new sessions
Attila Molnar [Wed, 15 Oct 2014 18:10:04 +0000 (20:10 +0200)]
m_ssl_openssl Free the ssl_cert object as soon as the session is closed instead of waiting for the next VerifyCertificate() or new connection
Attila Molnar [Wed, 15 Oct 2014 18:07:55 +0000 (20:07 +0200)]
m_ssl_openssl Remove bogus errno assignment from CloseSession()
Attila Molnar [Wed, 15 Oct 2014 17:55:17 +0000 (19:55 +0200)]
Merge pull request #935 from SaberUK/insp20+fix-crlf
Add a workaround for compiling modules with Windows line endings.
Attila Molnar [Tue, 14 Oct 2014 15:52:41 +0000 (17:52 +0200)]
m_ssl_openssl Return an error from the IOHook read and write functions if the handshake returns 0
The meaning of a 0 return value quoted from the manual:
The TLS/SSL handshake was not successful but was shut down controlled and by the specifications of the TLS/SSL protocol.
Attila Molnar [Tue, 14 Oct 2014 15:40:13 +0000 (17:40 +0200)]
m_ssl_openssl Add user-friendly config options for setting a few OpenSSL context options
Peter Powell [Mon, 13 Oct 2014 20:44:13 +0000 (21:44 +0100)]
Add a workaround for compiling modules with Windows line endings.
Attila Molnar [Mon, 13 Oct 2014 19:18:12 +0000 (21:18 +0200)]
m_nationalchars Ask m_spanningtree to rebuild its hashmaps when the national_case_insensitive_map changes
Issue #923
Attila Molnar [Mon, 13 Oct 2014 19:16:51 +0000 (21:16 +0200)]
m_spanningtree Rebuild serverlist and sidlist when receiving a specific Request
Issue #923
Attila Molnar [Mon, 13 Oct 2014 19:12:55 +0000 (21:12 +0200)]
m_nationalchars Rebuild the hash map in m_watch when the national_case_insensitive_map changes
Issue #923
Attila Molnar [Mon, 13 Oct 2014 19:11:14 +0000 (21:11 +0200)]
m_nationalchars Rebuild core hashmaps when the national_case_insensitive_map changes
Issue #923
Attila Molnar [Mon, 13 Oct 2014 18:37:38 +0000 (20:37 +0200)]
Merge pull request #934 from SaberUK/insp20+fix-various-issues
Fix various issues detected by Coverity.
Peter Powell [Sun, 12 Oct 2014 17:38:23 +0000 (18:38 +0100)]
Kill some logically dead code detected by Coverity.
- m_watch: wl has already been confirmed to not be NULL on L161.
Peter Powell [Mon, 20 May 2013 19:15:50 +0000 (20:15 +0100)]
Replace dodgy use of const char* and memcpy with std::string.
This was backported from commit
e01df63 in master.
Attila Molnar [Mon, 13 Oct 2014 17:07:44 +0000 (19:07 +0200)]
Merge pull request #933 from SaberUK/insp20+fix-llvm34
Fix various warnings when building with LLVM 3.5.
Peter Powell [Wed, 8 Oct 2014 15:34:37 +0000 (16:34 +0100)]
Avoid calling methods on NULL pointers wherever possible.
The trick we use to allow this is undefined behaviour and is not
liked by LLVM. We should stop using it but it has the potential to
break to many things for a minor release.
Peter Powell [Mon, 6 Oct 2014 12:30:31 +0000 (13:30 +0100)]
Fix various warnings when building with LLVM 3.5.
- warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value]
- warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
Attila Molnar [Fri, 10 Oct 2014 12:26:09 +0000 (14:26 +0200)]
m_ssl_openssl Allow configuring raw OpenSSL context options
Attila Molnar [Fri, 10 Oct 2014 12:15:37 +0000 (14:15 +0200)]
m_ssl_openssl Disable session caching and session tickets
Attila Molnar [Fri, 10 Oct 2014 12:10:24 +0000 (14:10 +0200)]
m_ssl_openssl Enable single (EC)DH use and disable SSL v2
Options enabled:
- SSL_OP_NO_SSLv2
- SSL_OP_SINGLE_DH_USE
- SSL_OP_SINGLE_ECDH_USE (if it exists)
Partial backport of #856 by @jvehent
Attila Molnar [Wed, 8 Oct 2014 00:36:00 +0000 (02:36 +0200)]
m_ssl_openssl Clear the error queue before every SSL_* call
Attila Molnar [Mon, 6 Oct 2014 15:40:35 +0000 (17:40 +0200)]
Merge pull request #931 from SaberUK/insp20+fix-non-gnu-stl
Fix hash_map.h on non-GNU C++ standard library implementations.
Attila Molnar [Mon, 6 Oct 2014 15:21:08 +0000 (17:21 +0200)]
Merge pull request #930 from rburchell/revertfix
Revert "Fix an off-by-one on registration timeout handling."
Peter Powell [Sat, 4 Oct 2014 12:52:21 +0000 (13:52 +0100)]
Fix hash_map.h on non-GNU C++ standard library implementations.
Robin Burchell [Sat, 4 Oct 2014 23:51:47 +0000 (01:51 +0200)]
Revert "Fix an off-by-one on registration timeout handling."
This seemingly breaks (occasionally timing users out a second early), possibly
due to rounding issues on time (User::age and Time() both return int, but a
whole second is comprised of many ms).
The root cause needs investigation, but we cannot leave a potentially breaking
bug in the tree.
This reverts commit
4414d644a163f3906f90b35186e07ce0383161f4 .
Attila Molnar [Sat, 4 Oct 2014 14:26:54 +0000 (16:26 +0200)]
Merge pull request #929 from rburchell/insp20
Fix an off-by-one on registration timeout handling.
Robin Burchell [Sat, 4 Oct 2014 13:30:56 +0000 (15:30 +0200)]
Fix an off-by-one on registration timeout handling.
The use of > instead of >= here added a second onto the configured timeout.
We won't be breaking any existing configuration, because users.h explicitly
increases the limit if it's 0.
Attila Molnar [Fri, 3 Oct 2014 21:50:54 +0000 (23:50 +0200)]
m_ssl_gnutls Re-set DH params when the gnutls_certificate_credentials_t struct is reallocated
Attila Molnar [Sat, 27 Sep 2014 16:30:01 +0000 (18:30 +0200)]
Store Membership objects physically in the nodes of Channel::MemberMap
Attila Molnar [Sat, 27 Sep 2014 16:24:44 +0000 (18:24 +0200)]
Add the insp::aligned_storage template
Attila Molnar [Fri, 26 Sep 2014 19:07:24 +0000 (21:07 +0200)]
Reject parameters that begin with a colon in Channel::SetDefaultModes()
Attila Molnar [Fri, 26 Sep 2014 18:58:55 +0000 (20:58 +0200)]
Don't try to set a mode in Channel::SetDefaultModes() if it needs a parameter but does not have one
Thanks to @docwhat for helping to track this down, fixes issue #924
JustArchi [Mon, 22 Sep 2014 15:37:05 +0000 (17:37 +0200)]
Forward-port of https://github.com/inspircd/inspircd-extras/commit/
a311dbcaea1abad68b87ebbb283fc6d75a207a53 into master
Attila Molnar [Mon, 15 Sep 2014 15:35:36 +0000 (17:35 +0200)]
Fix incorrect cleanup order in InspIRCd::Exit()
classbase objects such as callers call LogManager::Log() on destruction unless ServerInstance is NULL
Attila Molnar [Wed, 10 Sep 2014 13:03:21 +0000 (15:03 +0200)]
Remove listmode hiding support from the core
This is now handled by m_hidelist
Attila Molnar [Wed, 10 Sep 2014 12:59:00 +0000 (14:59 +0200)]
m_hidelist Make minimum rank required to view lists configurable
Attila Molnar [Wed, 10 Sep 2014 12:50:57 +0000 (14:50 +0200)]
Add m_hidelist that allows hiding the lists of listmodes
Adam [Mon, 8 Sep 2014 22:27:57 +0000 (18:27 -0400)]
Remove IPv6 address compaction.
This code is incorrect and can produce addresses with multiple double
colons. No other IRCds do this and most systems today will give us the
compact version anyway.
Issue #914
Adam [Mon, 8 Sep 2014 20:58:50 +0000 (16:58 -0400)]
Do not use the result of the dns cache when the query type of the result is different from the type of the query. #66
Attila Molnar [Fri, 5 Sep 2014 13:37:49 +0000 (15:37 +0200)]
cmode_l Reject negative limits
Attila Molnar [Fri, 5 Sep 2014 13:32:04 +0000 (15:32 +0200)]
m_services_account Fix uninitialized variable usage introduced by insp20 merge
e244cb2c63b1ac1d85bdbb4691f7b1bd940ae804
Attila Molnar [Fri, 5 Sep 2014 13:20:44 +0000 (15:20 +0200)]
m_samode Simplify command handler logic
Attila Molnar [Fri, 5 Sep 2014 13:06:21 +0000 (15:06 +0200)]
Unset oper-only modes in User::UnOper() in a more sensible way
Get the user mode list from the ModeParser instead of trying all possible mode letters
Attila Molnar [Thu, 4 Sep 2014 11:33:45 +0000 (13:33 +0200)]
cmd_mode Exempt remote users and servers from max modes limitation when changing user modes
Attila Molnar [Thu, 4 Sep 2014 11:30:01 +0000 (13:30 +0200)]
Migrate code from ModeParser into cmd_mode (core_user)
- Process() that takes a std::vector<std::string>
- DisplayCurrentModes()
- DisplayListModes()
Attila Molnar [Thu, 4 Sep 2014 11:11:48 +0000 (13:11 +0200)]
core_user Expand the MODE handler into its own file
Attila Molnar [Thu, 4 Sep 2014 11:08:22 +0000 (13:08 +0200)]
Split ModeParser::DisplayListMode() into two parts
ShowListModeList() sends the list of one listmode to a user, DisplayListMode() calls it for each mode letter
Attila Molnar [Thu, 4 Sep 2014 11:05:13 +0000 (13:05 +0200)]
Remove unused parameter passed to ModeParser::DisplayCurrentModes()
Attila Molnar [Thu, 4 Sep 2014 11:04:01 +0000 (13:04 +0200)]
m_namedmodes Build and process a Modes::ChangeList when handling PROP
Attila Molnar [Thu, 4 Sep 2014 10:58:25 +0000 (12:58 +0200)]
Pass Modes::ChangeList references to the OnPreMode hook, make it modifiable
This gets rid of the duplicated mode parsing logic in m_namedmodes
Attila Molnar [Thu, 4 Sep 2014 10:34:26 +0000 (12:34 +0200)]
Call the MODE command handler in several modules instead of the old ModeParser::Process()
Attila Molnar [Thu, 4 Sep 2014 10:31:56 +0000 (12:31 +0200)]
m_spanningtree Simplify processing non-prefix modes in FJOINs
Use ModeParser::ModeParamsToChangeList() instead of duplicating logic
Attila Molnar [Thu, 4 Sep 2014 10:30:40 +0000 (12:30 +0200)]
m_spanningtree Apply FMODE mode changes using the new ModeParser functions
Attila Molnar [Thu, 4 Sep 2014 10:27:04 +0000 (12:27 +0200)]
Let callers customize the begin/end positions for ModeParser::ModeParamsToChangeList()
This helps spanningtree when it deals with a vector of parameters where the modes begin at different positions
Attila Molnar [Thu, 4 Sep 2014 10:22:28 +0000 (12:22 +0200)]
m_services_account Call ModeHandler::RemoveMode() instead of duplicating code
Attila Molnar [Wed, 3 Sep 2014 13:40:19 +0000 (15:40 +0200)]
Remove irc::modestacker
Attila Molnar [Wed, 3 Sep 2014 13:36:21 +0000 (15:36 +0200)]
m_spanningtree Remove CommandFJoin::ApplyModeStack()
Attila Molnar [Wed, 3 Sep 2014 13:35:13 +0000 (15:35 +0200)]
Use Modes::ChangeList in ModeHandler::RemoveMode()
Attila Molnar [Wed, 3 Sep 2014 13:32:02 +0000 (15:32 +0200)]
Replace irc::modestacker usage with the new ModeParser::Process()
Attila Molnar [Wed, 3 Sep 2014 13:11:27 +0000 (15:11 +0200)]
Add a ModeParser::Process() overload that can process an entire Modes::ChangeList
This is a wrapper that calls ProcessSingle() repeatedly until the entire changelist is processed
Attila Molnar [Wed, 3 Sep 2014 13:05:56 +0000 (15:05 +0200)]
Make it possible to resume processing a partially processed Modes::ChangeList
Return number of processed mode changes from ModeParser::ProcessSingle() and add a begin index parameter
Attila Molnar [Wed, 3 Sep 2014 13:03:38 +0000 (15:03 +0200)]
Split out ModeParser::ModeParamsToChangeList()
Attila Molnar [Wed, 3 Sep 2014 12:56:42 +0000 (14:56 +0200)]
Handle mode merges in ModeParser::ProcessSingle()
Attila Molnar [Wed, 3 Sep 2014 12:52:00 +0000 (14:52 +0200)]
Validate mode parameters from ModeParser::ProcessSingle()
Attila Molnar [Wed, 3 Sep 2014 12:47:13 +0000 (14:47 +0200)]
Split out ModeParser::ProcessSingle() from Process()
This applies up to one MODE line's worth of mode changes from a Modes::ChangeList
Attila Molnar [Wed, 3 Sep 2014 12:37:42 +0000 (14:37 +0200)]
Add mode process flag MODE_CHECKACCESS
Attila Molnar [Wed, 3 Sep 2014 12:32:02 +0000 (14:32 +0200)]
Remove ModeHandler::m_paramtype and GetTranslateType()
Attila Molnar [Wed, 3 Sep 2014 12:31:00 +0000 (14:31 +0200)]
Remove ModeParser::LastParseTranslate and GetLastParseTranslate()
Attila Molnar [Wed, 3 Sep 2014 12:30:04 +0000 (14:30 +0200)]
Remove ModeParser::LastParseParams and GetLastParseParams()
Attila Molnar [Wed, 3 Sep 2014 12:28:57 +0000 (14:28 +0200)]
Compare Limits.MaxModes to the size of LastChangeList in ModeParser::Process()
Attila Molnar [Wed, 3 Sep 2014 12:28:13 +0000 (14:28 +0200)]
Remove ProtocolInterface::SendMode()