]>
git.netwichtig.de Git - user/henk/code/inspircd.git/log
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()
Attila Molnar [Wed, 3 Sep 2014 12:26:40 +0000 (14:26 +0200)]
m_spanningtree Send MODE/FMODE from the OnMode hook
If the MODE_LOCALONLY flag is set the mode change is not propagated
Attila Molnar [Wed, 3 Sep 2014 12:23:30 +0000 (14:23 +0200)]
m_spanningtree Add function to serialize parameters in a Modes::ChangeList::List into MODE/FMODE format
Attila Molnar [Wed, 3 Sep 2014 12:15:18 +0000 (14:15 +0200)]
Pass the modes to the OnMode hook as a Modes::ChangeList, pass ModeProcessFlags too
Attila Molnar [Wed, 3 Sep 2014 12:09:03 +0000 (14:09 +0200)]
Populate a Modes::ChangeList object in ModeParser::Process()
Attila Molnar [Wed, 3 Sep 2014 12:06:45 +0000 (14:06 +0200)]
Add Modes::Change and Modes::ChangeList
Attila Molnar [Tue, 2 Sep 2014 14:32:00 +0000 (16:32 +0200)]
Change mode_sequence to be a const ref in ModeParser::Process()
Also change the signature of DisplayListModes() to accept a const ref
Attila Molnar [Tue, 2 Sep 2014 14:27:12 +0000 (16:27 +0200)]
Replace stringstream with a std::string in ModeParser::Process()
There is no benefit in using a stringstream here
Attila Molnar [Mon, 1 Sep 2014 22:15:59 +0000 (00:15 +0200)]
m_sqlite3 Fix cleanup of unsuccessful database connections
Attila Molnar [Mon, 1 Sep 2014 13:17:23 +0000 (15:17 +0200)]
m_spanningtree Add optional key parameter to SVSJOIN and allow it to do override joins
Slightly more readable version of #892 by @ShutterQuick
Attila Molnar [Sun, 31 Aug 2014 12:42:00 +0000 (14:42 +0200)]
Merge pull request #910 from SaberUK/insp20+even-more-build-system-fixes
Fix unit-cc not loading configure cache when building files.
Dan Parsons [Mon, 4 Aug 2014 17:57:43 +0000 (10:57 -0700)]
Updated inspircd init script template to make it chkconfig compatible.
Attila Molnar [Sun, 31 Aug 2014 10:53:23 +0000 (12:53 +0200)]
m_blockamsg Update coding style, use User::WriteNotice()
Attila Molnar [Sun, 31 Aug 2014 10:51:42 +0000 (12:51 +0200)]
m_blockamsg Remove redundant check
Attila Molnar [Sun, 31 Aug 2014 10:49:19 +0000 (12:49 +0200)]
m_blockamsg Uncrook channel counting logic
Attila Molnar [Sun, 31 Aug 2014 10:44:57 +0000 (12:44 +0200)]
m_blockamsg Prevent double copy of the target string
Attila Molnar [Sun, 31 Aug 2014 10:43:31 +0000 (12:43 +0200)]
m_blockamsg Remove useless variable
Attila Molnar [Sat, 30 Aug 2014 08:35:21 +0000 (10:35 +0200)]
Move the intrusive list containers into the insp namespace
Peter Powell [Wed, 27 Aug 2014 21:01:54 +0000 (22:01 +0100)]
Fix unit-cc not loading configure cache when building files.
Attila Molnar [Tue, 19 Aug 2014 14:56:11 +0000 (16:56 +0200)]
Merge pull request #900 from SaberUK/insp20+build-system-fixes
[2.0] Fix various problems with the build system.
Peter Powell [Sun, 10 Aug 2014 16:41:54 +0000 (17:41 +0100)]
Add a work around for trampling over PKG_CONFIG_PATH.
The extend_pkg_path method will be removed in 2.2 as it
causes problems with non-standard pkg-config paths. This
commit adds a workaround until that happens.
Peter Powell [Sat, 26 Jul 2014 16:57:50 +0000 (17:57 +0100)]
Fix pkg-config not being used for OpenSSL on non-FreeBSD systems.
Attila Molnar [Wed, 6 Aug 2014 20:12:54 +0000 (22:12 +0200)]
Merge pull request #899 from SaberUK/insp20+fix-listmode-limits
[2.0] Fix listmodes when the config does not specify a wildcard size entry.
Attila Molnar [Wed, 6 Aug 2014 11:44:02 +0000 (13:44 +0200)]
m_ojoin Change allocation of NetworkPrefix to be physically part of the object containing it
Attila Molnar [Wed, 6 Aug 2014 11:40:27 +0000 (13:40 +0200)]
m_ojoin Leave it to the core throw an exception if the prefix char is in use
Attila Molnar [Wed, 6 Aug 2014 11:38:34 +0000 (13:38 +0200)]
Migrate ModeChannelOp and ModeChannelVoice constructors to builtinmodes.h, remove cmode_{o,v}
The default value for levelrequired is HALFOP_VALUE, meaning the ModeChannelVoice class is not required but it will be useful in case the default changes
Attila Molnar [Wed, 6 Aug 2014 11:35:40 +0000 (13:35 +0200)]
Pass prefix rank and prefix char to PrefixMode constructor
Attila Molnar [Wed, 6 Aug 2014 11:27:16 +0000 (13:27 +0200)]
Remove a bunch of useless classes representing simple core modes
Attila Molnar [Wed, 6 Aug 2014 11:22:40 +0000 (13:22 +0200)]
Change ListModeBase::DoRehash() to not be virtual
Attila Molnar [Wed, 6 Aug 2014 11:20:00 +0000 (13:20 +0200)]
m_exemptchanops Fix parameter validation
Attila Molnar [Wed, 6 Aug 2014 11:10:58 +0000 (13:10 +0200)]
m_spanningtree Remove redundant checks from HandleRemoteWhois()
The size of the vector is checked in OnPreCommand() and that hook only runs for local users