]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
9 years agom_timedbans Store Channel pointer in struct TimedBan
Attila Molnar [Mon, 13 Apr 2015 13:40:26 +0000 (15:40 +0200)]
m_timedbans Store Channel pointer in struct TimedBan

9 years agoMerge pull request #1004 from SaberUK/insp20+fix-various-warnings
Attila Molnar [Sun, 22 Mar 2015 23:42:59 +0000 (00:42 +0100)]
Merge pull request #1004 from SaberUK/insp20+fix-various-warnings

[2.0] Fix various warnings with the new Doxygen and LLVM releases.

9 years agoMerge pull request #1016 from Renegade334/insp20+docs-no-extbanM
Attila Molnar [Sun, 22 Mar 2015 23:40:09 +0000 (00:40 +0100)]
Merge pull request #1016 from Renegade334/insp20+docs-no-extbanM

Remove non-existant extban M: from docs

9 years agoMerge pull request #1009 from SaberUK/insp20+fix-dirty-env
Attila Molnar [Sun, 22 Mar 2015 23:40:05 +0000 (00:40 +0100)]
Merge pull request #1009 from SaberUK/insp20+fix-dirty-env

[2.0] Fix building when VERBOSE is already set in the environment.

9 years agoRebuild clone counts on rehash
Adam [Tue, 3 Mar 2015 20:45:22 +0000 (15:45 -0500)]
Rebuild clone counts on rehash

9 years agoFix exposing the opers hostname in KILL when using hidekills.
Peter Powell [Fri, 20 Mar 2015 14:13:12 +0000 (14:13 +0000)]
Fix exposing the opers hostname in KILL when using hidekills.

9 years agoRemove non-existant extban M: from docs
Renegade334 [Mon, 16 Mar 2015 19:57:04 +0000 (19:57 +0000)]
Remove non-existant extban M: from docs
extban M: has not existed since 2d732f4d in 2009...

9 years agoFix building when VERBOSE is already set in the environment.
Peter Powell [Mon, 9 Mar 2015 15:26:40 +0000 (15:26 +0000)]
Fix building when VERBOSE is already set in the environment.

This is a workaround for now. In 2.2 we should prefix all of the
environment variables with INSPIRCD_ to avoid collisions.

9 years agoFix various Doxygen warnings.
Peter Powell [Thu, 26 Feb 2015 22:35:06 +0000 (22:35 +0000)]
Fix various Doxygen warnings.

9 years agoUpgrade Doxyfile from 1.8.3.1 to 1.8.9.1.
Peter Powell [Thu, 26 Feb 2015 22:31:57 +0000 (22:31 +0000)]
Upgrade Doxyfile from 1.8.3.1 to 1.8.9.1.

Also, strip comments by request of @attilamolnar.

9 years agoFix various Clang warnings.
Peter Powell [Thu, 26 Feb 2015 07:41:46 +0000 (07:41 +0000)]
Fix various Clang warnings.

- warning: 'register' storage class specifier is deprecated.

9 years agoMerge pull request #1002 from SaberUK/insp20+fix-cgiirc-crash
Attila Molnar [Tue, 24 Feb 2015 21:30:45 +0000 (22:30 +0100)]
Merge pull request #1002 from SaberUK/insp20+fix-cgiirc-crash

[2.0] Fix a minor crash when a user has no class after OnCheckReady.

9 years agoFix a minor crash when a user has no class after OnCheckReady.
Peter Powell [Sun, 22 Feb 2015 20:24:31 +0000 (20:24 +0000)]
Fix a minor crash when a user has no class after OnCheckReady.

This bug looks serious but it can only be triggered with a
very unusual server configuration problem. If you haven't
already had a crash then you probably aren't at any risk.

The way this crash happens is:

1. InspIRCd::DoBackgroundUserStuff is called by the main loop.
2. In the switch statement curr->registered is set to REG_NICKUSER so InspIRCd::AllModulesReportReady is called.
3. InspIRCd::AllModulesReportReady calls the OnCheckReady event in m_cgiirc.
4. m_cgiirc calls RecheckClass which sets the user's class to NULL and calls LocalUser::SetClass followed by LocalUser::CheckClass.
5. The user doesn't match any classes in LocalUser::SetClass so LocalUser::CheckClass quits the user with with "Access denied by configuration".
6. Control flow returns to InspIRCd::DoBackgroundUserStuff when InspIRCd::AllModulesReportReady returns false.
7. The if statement at the end of InspIRCd::DoBackgroundUserStuff calls ConnectClass::GetRegTimeout on curr->MyClass.
8. ConnectClass::GetRegTimeout tries to access a member of this which is NULL.
9. The server crashes with a SEGFAULT.

9 years agoMerge pull request #992 from SaberUK/insp20+fix-error-message
Attila Molnar [Tue, 17 Feb 2015 15:10:04 +0000 (16:10 +0100)]
Merge pull request #992 from SaberUK/insp20+fix-error-message

[2.0] Fix erroneous error messages in configure.

9 years agoFix erroneous error messages in configure.
Peter Powell [Thu, 12 Feb 2015 22:12:41 +0000 (22:12 +0000)]
Fix erroneous error messages in configure.

9 years agoRemove outdated ircservices and neostats config examples
Attila Molnar [Sun, 8 Feb 2015 23:09:38 +0000 (00:09 +0100)]
Remove outdated ircservices and neostats config examples

Issue #991

9 years agocmd_userhost List 5 users in the reply even if the query (incorrectly) contains more...
Attila Molnar [Wed, 4 Feb 2015 18:16:20 +0000 (19:16 +0100)]
cmd_userhost List 5 users in the reply even if the query (incorrectly) contains more than 5 nicks

9 years agom_spanningtree Fix TreeRoot UserCount being possibly wrong if loaded after startup
Attila Molnar [Wed, 4 Feb 2015 17:53:28 +0000 (18:53 +0100)]
m_spanningtree Fix TreeRoot UserCount being possibly wrong if loaded after startup

9 years agothreadengine_pthread Throw CoreExceptions instead of CoreException pointers
Attila Molnar [Mon, 2 Feb 2015 22:39:40 +0000 (23:39 +0100)]
threadengine_pthread Throw CoreExceptions instead of CoreException pointers

9 years agom_abbreviation Fix typo in numeric text
Attila Molnar [Wed, 21 Jan 2015 18:08:30 +0000 (19:08 +0100)]
m_abbreviation Fix typo in numeric text

9 years agoFix numeric ERR_NOTREGISTERED not containing the user's nick
Attila Molnar [Wed, 21 Jan 2015 18:07:44 +0000 (19:07 +0100)]
Fix numeric ERR_NOTREGISTERED not containing the user's nick

9 years agoMerge pull request #961 from SaberUK/insp20+fix-snotice
Attila Molnar [Wed, 21 Jan 2015 18:04:10 +0000 (19:04 +0100)]
Merge pull request #961 from SaberUK/insp20+fix-snotice

Fix a snotice in m_spanningtree incorrectly using an unsigned long.

9 years agoMerge branch 'insp20+penalty' into insp20
Attila Molnar [Mon, 19 Jan 2015 16:47:03 +0000 (17:47 +0100)]
Merge branch 'insp20+penalty' into insp20

9 years agom_operprefix Fix force joined opers not being given the operprefix mode
Attila Molnar [Mon, 19 Jan 2015 16:43:58 +0000 (17:43 +0100)]
m_operprefix Fix force joined opers not being given the operprefix mode

9 years agoDon't bind ports after an unsuccessful rehash
Attila Molnar [Mon, 19 Jan 2015 16:38:30 +0000 (17:38 +0100)]
Don't bind ports after an unsuccessful rehash

9 years agoUpdate year in resource file for Windows
Attila Molnar [Sat, 17 Jan 2015 16:02:48 +0000 (17:02 +0100)]
Update year in resource file for Windows

9 years agoMerge pull request #967 from SaberUK/insp20+fix-windows
Attila Molnar [Sat, 17 Jan 2015 16:00:57 +0000 (17:00 +0100)]
Merge pull request #967 from SaberUK/insp20+fix-windows

Fix modules not being versioned on Windows.

9 years agoFix modules not being versioned on Windows.
Peter Powell [Sat, 17 Jan 2015 15:31:35 +0000 (15:31 +0000)]
Fix modules not being versioned on Windows.

9 years agom_hideoper Fix wrong /WHO output for hidden opers if the channel name contains '*'
Attila Molnar [Sat, 17 Jan 2015 14:27:09 +0000 (15:27 +0100)]
m_hideoper Fix wrong /WHO output for hidden opers if the channel name contains '*'

9 years agoFix elines not matching elined users when rechecking elined status
Attila Molnar [Sat, 17 Jan 2015 14:21:51 +0000 (15:21 +0100)]
Fix elines not matching elined users when rechecking elined status

9 years agoMerge pull request #968 from ShutterQuick/insp20+sporder
Attila Molnar [Sat, 17 Jan 2015 14:19:08 +0000 (15:19 +0100)]
Merge pull request #968 from ShutterQuick/insp20+sporder

cmd_list: Give +s precedence to +p

9 years agocmd_list: Give +s precedence to +p
Daniel Vassdal [Sat, 17 Jan 2015 13:46:28 +0000 (14:46 +0100)]
cmd_list: Give +s precedence to +p
When +ps is set, handle it as +s (most restrictive) instead of +p

9 years agoMerge pull request #966 from SaberUK/insp20+fix-error-message
Attila Molnar [Sat, 17 Jan 2015 13:37:27 +0000 (14:37 +0100)]
Merge pull request #966 from SaberUK/insp20+fix-error-message

Fix a blank error message when trying to load a module with a path.

9 years agoFix a blank error message when trying to load a module with a path.
Peter Powell [Fri, 16 Jan 2015 03:14:35 +0000 (03:14 +0000)]
Fix a blank error message when trying to load a module with a path.

9 years agoAlways penalize clients executing a command which fails before running the handler...
Attila Molnar [Mon, 12 Jan 2015 13:24:23 +0000 (14:24 +0100)]
Always penalize clients executing a command which fails before running the handler, even if the command has 0 penalty

9 years agoIncrease penalty for some core commands
Attila Molnar [Mon, 12 Jan 2015 13:19:58 +0000 (14:19 +0100)]
Increase penalty for some core commands

9 years agoFix harmless uninitialized variable usage on startup if the config is incorrect
Attila Molnar [Mon, 12 Jan 2015 13:10:53 +0000 (14:10 +0100)]
Fix harmless uninitialized variable usage on startup if the config is incorrect

9 years agoMerge pull request #963 from SaberUK/insp20+nuke-data-dumper
Attila Molnar [Sun, 11 Jan 2015 11:46:04 +0000 (12:46 +0100)]
Merge pull request #963 from SaberUK/insp20+nuke-data-dumper

Don't load Data::Dumper in the configure script.

9 years agoDon't load Data::Dumper in the configure script.
Peter Powell [Sun, 11 Jan 2015 04:29:50 +0000 (04:29 +0000)]
Don't load Data::Dumper in the configure script.

This is not used and apparently there are some distros which do
not include it as part of the system Perl.

9 years agoFix a snotice in m_spanningtree incorrectly using an unsigned long.
Peter Powell [Sat, 3 Jan 2015 20:33:09 +0000 (20:33 +0000)]
Fix a snotice in m_spanningtree incorrectly using an unsigned long.

This value can be negative so it should be a signed long not an
unsigned long.

9 years agoFix signon time of clients being off by dns_timeout seconds
Attila Molnar [Tue, 30 Dec 2014 19:51:34 +0000 (20:51 +0100)]
Fix signon time of clients being off by dns_timeout seconds

9 years agoFix User::age being incorrectly used in some places instead of signon
Attila Molnar [Tue, 30 Dec 2014 19:26:05 +0000 (20:26 +0100)]
Fix User::age being incorrectly used in some places instead of signon

9 years agom_check Fix non-standard format specifier %s passed to strftime() causing problems...
Attila Molnar [Sat, 27 Dec 2014 13:50:22 +0000 (14:50 +0100)]
m_check Fix non-standard format specifier %s passed to strftime() causing problems on systems not supporting it (Windows)

9 years agom_httpd On module unload close all connections hooked by the module being unloaded
Attila Molnar [Wed, 10 Dec 2014 16:50:31 +0000 (17:50 +0100)]
m_httpd On module unload close all connections hooked by the module being unloaded

9 years agoReject empty mode parameters in ModeParser::Process() instead of relying on ModeHandl...
Attila Molnar [Sun, 30 Nov 2014 17:40:10 +0000 (18:40 +0100)]
Reject empty mode parameters in ModeParser::Process() instead of relying on ModeHandlers to do it

9 years agoDon't submit a reload worker if the module doing the reload is scheduled for unload
Attila Molnar [Sun, 30 Nov 2014 17:24:17 +0000 (18:24 +0100)]
Don't submit a reload worker if the module doing the reload is scheduled for unload

9 years agoValidate module reload callback before use in PURE_STATIC builds
Attila Molnar [Sun, 30 Nov 2014 17:20:42 +0000 (18:20 +0100)]
Validate module reload callback before use in PURE_STATIC builds

9 years agoFix a couple of helpop issues
Attila Molnar [Sat, 29 Nov 2014 15:40:33 +0000 (16:40 +0100)]
Fix a couple of helpop issues

Fixes issue #949 reported by @webczat

9 years agoUpdated inspircd init script template to make it chkconfig compatible.
Dan Parsons [Mon, 4 Aug 2014 17:57:43 +0000 (10:57 -0700)]
Updated inspircd init script template to make it chkconfig compatible.

Backported from master, PR #901

9 years agoMake some config strings a bit more professional and use RFC reserved TLD's everywhere
JD Horelick [Sun, 9 Nov 2014 00:40:08 +0000 (19:40 -0500)]
Make some config strings a bit more professional and use RFC reserved TLD's everywhere

9 years agoAdd missing oper-only commands to oper class blocks
JD Horelick [Sat, 8 Nov 2014 23:45:55 +0000 (18:45 -0500)]
Add missing oper-only commands to oper class blocks

9 years agoRemove formatting from the IRC link in README.md
Attila Molnar [Fri, 31 Oct 2014 15:36:47 +0000 (16:36 +0100)]
Remove formatting from the IRC link in README.md

It does not work, people don't see the address on the page

9 years agoMerge pull request #945 from SaberUK/insp20+even-more-module-manager-fixes
Attila Molnar [Fri, 31 Oct 2014 15:11:30 +0000 (16:11 +0100)]
Merge pull request #945 from SaberUK/insp20+even-more-module-manager-fixes

Fix modulemanager not being able to download modules (again!).

9 years agoFix modulemanager not being able to download modules (again!).
Peter Powell [Wed, 29 Oct 2014 12:44:50 +0000 (12:44 +0000)]
Fix modulemanager not being able to download modules (again!).

9 years agoAllow setting a limit of less than 64 entries for non-ban listmodes via <banlist>
Attila Molnar [Mon, 27 Oct 2014 20:10:03 +0000 (21:10 +0100)]
Allow setting a limit of less than 64 entries for non-ban listmodes via <banlist>

Fixes regression introduced in 234be2f3cb

9 years agoRelease v2.0.18
Attila Molnar [Sun, 26 Oct 2014 17:05:40 +0000 (18:05 +0100)]
Release v2.0.18

9 years agoRemove some dead code found by Coverity
Attila Molnar [Sun, 26 Oct 2014 17:01:24 +0000 (18:01 +0100)]
Remove some dead code found by Coverity

9 years agoMerge pull request #944 from SaberUK/insp20+gnutls-rnd
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.

9 years agoUse 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.

9 years agoMerge pull request #940 from SaberUK/insp20+fix-makefile
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.

9 years agoUse clang++ on FreeBSD 10 instead of g++.
Peter Powell [Tue, 21 Oct 2014 21:05:51 +0000 (22:05 +0100)]
Use clang++ on FreeBSD 10 instead of g++.

9 years agoFix some small bugs in the makefile template.
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.

9 years agom_delaymsg Add option to disallow NOTICEs too
Attila Molnar [Thu, 23 Oct 2014 15:59:44 +0000 (17:59 +0200)]
m_delaymsg Add option to disallow NOTICEs too

9 years agoFix m_banredirect causing bans added for hosts being rewritten as nicks
Adam [Mon, 20 Oct 2014 19:14:54 +0000 (15:14 -0400)]
Fix m_banredirect causing bans added for hosts being rewritten as nicks

9 years agoFail AAAA DNS queries if inet_ntop() fails
Attila Molnar [Wed, 22 Oct 2014 17:27:32 +0000 (19:27 +0200)]
Fail AAAA DNS queries if inet_ntop() fails

9 years agoCheck the return value of getnameinfo() on Windows in insp_inet_ntop() and return...
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

9 years agoSet the parameter of -b to the banmask actually removed
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

9 years agom_ssl_openssl Add compile time option that allows disabling renegotiations
Attila Molnar [Fri, 17 Oct 2014 16:46:47 +0000 (18:46 +0200)]
m_ssl_openssl Add compile time option that allows disabling renegotiations

9 years agom_ssl_openssl Add compile time option to enable ECDH
Attila Molnar [Wed, 15 Oct 2014 16:27:20 +0000 (18:27 +0200)]
m_ssl_openssl Add compile time option to enable ECDH

9 years agom_ssl_gnutls Add compile time option for allowing sha256 certificate fingerprints
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

9 years agoUpdate <nationalchars> tag documentation
Attila Molnar [Mon, 20 Oct 2014 18:42:17 +0000 (20:42 +0200)]
Update <nationalchars> tag documentation

9 years agoFix watch away numerics, #937
Adam [Sat, 18 Oct 2014 18:28:50 +0000 (14:28 -0400)]
Fix watch away numerics, #937

9 years agom_delayjoin Only send JOIN on mode change if the mode being changed is a prefix mode
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

9 years agoInitialize all fields of issl_session on module load in SSL modules
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

9 years agoAdd interface to SSL modules that allows other modules to obtain the raw SSL session...
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

9 years agom_ssl_gnutls Refcount GnuTLS objects, free them when they are no longer in use instea...
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

9 years agom_ssl_openssl Fix debug message
Attila Molnar [Wed, 15 Oct 2014 18:16:05 +0000 (20:16 +0200)]
m_ssl_openssl Fix debug message

9 years agom_ssl_openssl Reset data_to_write for new sessions
Attila Molnar [Wed, 15 Oct 2014 18:13:00 +0000 (20:13 +0200)]
m_ssl_openssl Reset data_to_write for new sessions

9 years agom_ssl_openssl Free the ssl_cert object as soon as the session is closed instead of...
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

9 years agom_ssl_openssl Remove bogus errno assignment from CloseSession()
Attila Molnar [Wed, 15 Oct 2014 18:07:55 +0000 (20:07 +0200)]
m_ssl_openssl Remove bogus errno assignment from CloseSession()

9 years agoMerge pull request #935 from SaberUK/insp20+fix-crlf
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.

9 years agom_ssl_openssl Return an error from the IOHook read and write functions if the handsha...
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.

9 years agom_ssl_openssl Add user-friendly config options for setting a few OpenSSL context...
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

9 years agoAdd a workaround for compiling modules with Windows line endings.
Peter Powell [Mon, 13 Oct 2014 20:44:13 +0000 (21:44 +0100)]
Add a workaround for compiling modules with Windows line endings.

9 years agom_nationalchars Ask m_spanningtree to rebuild its hashmaps when the national_case_ins...
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

9 years agom_spanningtree Rebuild serverlist and sidlist when receiving a specific Request
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

9 years agom_nationalchars Rebuild the hash map in m_watch when the national_case_insensitive_ma...
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

9 years agom_nationalchars Rebuild core hashmaps when the national_case_insensitive_map changes
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

9 years agoMerge pull request #934 from SaberUK/insp20+fix-various-issues
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.

9 years agoKill some logically dead code 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.

9 years agoReplace dodgy use of const char* and memcpy with std::string.
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.

9 years agoMerge pull request #933 from SaberUK/insp20+fix-llvm34
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.

9 years agoAvoid calling methods on NULL pointers wherever possible.
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.

9 years agoFix various warnings when building with LLVM 3.5.
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]

9 years agom_ssl_openssl Allow configuring raw OpenSSL context options
Attila Molnar [Fri, 10 Oct 2014 12:26:09 +0000 (14:26 +0200)]
m_ssl_openssl Allow configuring raw OpenSSL context options

9 years agom_ssl_openssl Disable session caching and session tickets
Attila Molnar [Fri, 10 Oct 2014 12:15:37 +0000 (14:15 +0200)]
m_ssl_openssl Disable session caching and session tickets

9 years agom_ssl_openssl Enable single (EC)DH use and disable SSL v2
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

9 years agom_ssl_openssl Clear the error queue before every SSL_* call
Attila Molnar [Wed, 8 Oct 2014 00:36:00 +0000 (02:36 +0200)]
m_ssl_openssl Clear the error queue before every SSL_* call

9 years agoMerge pull request #931 from SaberUK/insp20+fix-non-gnu-stl
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.

9 years agoMerge pull request #930 from rburchell/revertfix
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."