]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
9 years agoUse ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.
Peter Powell [Fri, 23 Jan 2015 20:09:31 +0000 (20:09 +0000)]
Use ERR_YOUREBANNEDCREEP instead of NOTICE when a user is banned.

This is specified in RFC 1459 so we should probably use it.

9 years agoRemove pointless fd == INT_MAX check from StreamSocket::DoWrite()
Attila Molnar [Sat, 10 Jan 2015 14:39:02 +0000 (15:39 +0100)]
Remove pointless fd == INT_MAX check from StreamSocket::DoWrite()

9 years agoRemove some unnecessary NULL checks
Attila Molnar [Sat, 10 Jan 2015 14:36:13 +0000 (15:36 +0100)]
Remove some unnecessary NULL checks

9 years agoReduce std::string::substr() usage
Attila Molnar [Sat, 10 Jan 2015 14:16:03 +0000 (15:16 +0100)]
Reduce std::string::substr() usage

substr() returns a new string while erase() and assign() modify the existing one

9 years agoRemove the unused OnGlobalOper hook
Attila Molnar [Sat, 10 Jan 2015 13:30:41 +0000 (14:30 +0100)]
Remove the unused OnGlobalOper hook

9 years agoMerge pull request #959 from Alef-Burzmali/master+fixcloaking
Attila Molnar [Sat, 3 Jan 2015 15:22:08 +0000 (16:22 +0100)]
Merge pull request #959 from Alef-Burzmali/master+fixcloaking

Fix a regression in m_cloaking

9 years agocmd_invite Send RPL_AWAY after RPL_INVITING if the target user is away
Attila Molnar [Sat, 3 Jan 2015 15:06:53 +0000 (16:06 +0100)]
cmd_invite Send RPL_AWAY after RPL_INVITING if the target user is away

This is consistent with other server implementations and the RFC

9 years agoFix a regression in m_cloaking
Thomas Fargeix [Mon, 29 Dec 2014 22:47:21 +0000 (23:47 +0100)]
Fix a regression in m_cloaking

5c7db14a5 made the cloak use hex-encoded hashes instead
of the binary output.

9 years agoMerge branch 'master+listmode'
Attila Molnar [Fri, 19 Dec 2014 14:29:21 +0000 (15:29 +0100)]
Merge branch 'master+listmode'

9 years agoMerge branch 'master+flatmap'
Attila Molnar [Fri, 19 Dec 2014 14:24:02 +0000 (15:24 +0100)]
Merge branch 'master+flatmap'

9 years agoMerge branch 'master+serverlimits'
Attila Molnar [Thu, 18 Dec 2014 22:40:15 +0000 (23:40 +0100)]
Merge branch 'master+serverlimits'

9 years agoMerge pull request #953 from SaberUK/master+configure-oversights
Attila Molnar [Thu, 18 Dec 2014 22:33:20 +0000 (23:33 +0100)]
Merge pull request #953 from SaberUK/master+configure-oversights

Fix some oversights from #895.

9 years agoFix some oversights from #895.
Peter Powell [Thu, 18 Dec 2014 16:01:10 +0000 (16:01 +0000)]
Fix some oversights from #895.

- Always write the configure cache file as it is needed for updating
  the makefile when --update is called.
- List the modules which have been enabled in the "configuration
  complete" message.
- Silence some harmless warnings about installing PEM files which
  don't exist.

9 years agoDrop setter is empty check when displaying listmodes
Attila Molnar [Tue, 16 Dec 2014 15:45:06 +0000 (16:45 +0100)]
Drop setter is empty check when displaying listmodes

The setter cannot be empty unless the nick of a client is empty which is not possible

9 years agoDisplay listmodes in the order in which they are in the container instead of reverse...
Attila Molnar [Tue, 16 Dec 2014 15:44:00 +0000 (16:44 +0100)]
Display listmodes in the order in which they are in the container instead of reverse iterating

9 years agoChange listmode storage type to vector
Attila Molnar [Tue, 16 Dec 2014 15:42:35 +0000 (16:42 +0100)]
Change listmode storage type to vector

9 years agoChange type of some associative containers to their flat versions, including Extensib...
Attila Molnar [Mon, 15 Dec 2014 16:48:52 +0000 (17:48 +0100)]
Change type of some associative containers to their flat versions, including Extensible storage

9 years agoAdd flat_[multi]{map,set} containers
Attila Molnar [Mon, 15 Dec 2014 16:36:20 +0000 (17:36 +0100)]
Add flat_[multi]{map,set} containers

9 years agoAdd typedef ModeParser::ModeWatcherMap, remove ModeWatchIter
Attila Molnar [Mon, 15 Dec 2014 16:14:09 +0000 (17:14 +0100)]
Add typedef ModeParser::ModeWatcherMap, remove ModeWatchIter

9 years agoAdd typedef PrivSet for OperInfo::AllowedOperCommands and AllowedPrivs
Attila Molnar [Mon, 15 Dec 2014 16:09:48 +0000 (17:09 +0100)]
Add typedef PrivSet for OperInfo::AllowedOperCommands and AllowedPrivs

9 years agoMerge branch 'master+callerid' into master+flatmap
Attila Molnar [Mon, 15 Dec 2014 16:02:26 +0000 (17:02 +0100)]
Merge branch 'master+callerid' into master+flatmap

9 years agom_callerid Change CallerIdDataSet (wholistsme) to be a vector
Attila Molnar [Wed, 10 Dec 2014 15:57:18 +0000 (16:57 +0100)]
m_callerid Change CallerIdDataSet (wholistsme) to be a vector

9 years agom_callerid Add typedefs for containers in callerid_data
Attila Molnar [Wed, 10 Dec 2014 15:56:00 +0000 (16:56 +0100)]
m_callerid Add typedefs for containers in callerid_data

9 years agom_callerid Simplify code interacting with containers
Attila Molnar [Wed, 10 Dec 2014 15:50:12 +0000 (16:50 +0100)]
m_callerid Simplify code interacting with containers

9 years agoPass the empty tag to Limits when constructing a ServerConfig, remove default ServerL...
Attila Molnar [Tue, 9 Dec 2014 11:36:24 +0000 (12:36 +0100)]
Pass the empty tag to Limits when constructing a ServerConfig, remove default ServerLimits constructor

9 years agoAdd ServerLimits constructor that reads limits from a ConfigTag and use it
Attila Molnar [Tue, 9 Dec 2014 11:35:31 +0000 (12:35 +0100)]
Add ServerLimits constructor that reads limits from a ConfigTag and use it

9 years agoInitialize ServerConfig::EmptyTag using the init list
Attila Molnar [Tue, 9 Dec 2014 11:30:21 +0000 (12:30 +0100)]
Initialize ServerConfig::EmptyTag using the init list

9 years agoMerge branch 'master+timeout'
Attila Molnar [Mon, 8 Dec 2014 21:10:02 +0000 (22:10 +0100)]
Merge branch 'master+timeout'

9 years agoLink m_ldap against libldap_r
Adam [Sun, 7 Dec 2014 20:47:00 +0000 (15:47 -0500)]
Link m_ldap against libldap_r

9 years agoMerge pull request #941 from SaberUK/master+test-build
Attila Molnar [Sun, 7 Dec 2014 22:49:03 +0000 (23:49 +0100)]
Merge pull request #941 from SaberUK/master+test-build

Add support for extra modules and custom compilers to test-build.

9 years agoAdd support for extra modules and custom compilers to test-build.
Peter Powell [Wed, 22 Oct 2014 12:30:32 +0000 (13:30 +0100)]
Add support for extra modules and custom compilers to test-build.

9 years agoMerge pull request #895 from SaberUK/master+configure-misc-cleanup
Attila Molnar [Sun, 7 Dec 2014 22:39:55 +0000 (23:39 +0100)]
Merge pull request #895 from SaberUK/master+configure-misc-cleanup

Various improvements to the build system.

9 years agoFix builds on OpenBSD spamming the console with warnings.
Peter Powell [Wed, 1 Oct 2014 18:52:34 +0000 (19:52 +0100)]
Fix builds on OpenBSD spamming the console with warnings.

9 years agoFix warnings in m_ssl_openssl about the use of `long long` on C++03.
Peter Powell [Wed, 1 Oct 2014 18:52:30 +0000 (19:52 +0100)]
Fix warnings in m_ssl_openssl about the use of `long long` on C++03.

9 years agoMove common code to make::common from make::utilities.
Peter Powell [Wed, 1 Oct 2014 18:52:29 +0000 (19:52 +0100)]
Move common code to make::common from make::utilities.

The other code in that file will be removed very soon so it has
been left alone to avoid merge conflicts.

This will help prevent insp20 merge conflicts in the future.

9 years agoImplement support for distribution specific version labels.
Peter Powell [Wed, 1 Oct 2014 18:52:28 +0000 (19:52 +0100)]
Implement support for distribution specific version labels.

This will help us determine whether a version has been packaged by
a downstream distribution who quite often make arbitrary changes
which are a pain to provide support for.

Debian, we're looking at you.

9 years agoImprove build system compiler detection.
Peter Powell [Wed, 1 Oct 2014 18:52:27 +0000 (19:52 +0100)]
Improve build system compiler detection.

- Check the CXX environment variable inside find_compiler instead
  of doing it separately.
- Use a test file instead of checking for version output. This
  ensures we are using a working compiler.
- Pipe the output through run_test which makes debugging problems
  considerably easier.
- Detect Xcode versions of Clang properly by returning the LLVM
  version number instead of the Xcode one.

9 years agoImprove configure cache file handling.
Peter Powell [Wed, 1 Oct 2014 18:52:26 +0000 (19:52 +0100)]
Improve configure cache file handling.

- Add a version number to the configure cache file.
- Disable configure cache file in non-interactive mode.
- Rename configure cache file to .configure.cache to avoid 2.0 files.
- Use run_test to produce the "reading .configure.cache" message.

9 years agoMiscellaneous improvements to configure.
Peter Powell [Wed, 1 Oct 2014 18:52:25 +0000 (19:52 +0100)]
Miscellaneous improvements to configure.

- Clean up various minor sections of the code.
- Remove OpenSSL and GnuTLS detection plumbing.
  - This will soon be the job of modulemanager.
  - This did not work in non-interactive mode unlike --enable-extras.
- Rework runas user handling.
  - Add the --gid configure option.
  - Accept either an id or a name in --gid and --uid.
- Rework the question flow in interactive mode.
  - User is no longer asked detailed questions unless they want them.
  - Socket engine questions have been removed.
- Automatically enable non-interactive mode if STDIN or STDOUT are not
  a tty.

9 years agoAdd Perl module for console related code.
Peter Powell [Wed, 1 Oct 2014 18:52:23 +0000 (19:52 +0100)]
Add Perl module for console related code.

- Move prompt_* methods to this module.
- Add methods for printing errors and warnings easily.
- Add colour code helpers and switch all code to use them.

9 years agom_flashpolicyd, m_httpd Store sockets in a intrusive list
Attila Molnar [Mon, 3 Nov 2014 14:43:49 +0000 (15:43 +0100)]
m_flashpolicyd, m_httpd Store sockets in a intrusive list

9 years agom_flashpolicyd, m_httpd Handle timeouts using the Timer system
Attila Molnar [Mon, 3 Nov 2014 14:42:08 +0000 (15:42 +0100)]
m_flashpolicyd, m_httpd Handle timeouts using the Timer system

9 years agom_httpd Clean up HttpServerSocket constructor
Attila Molnar [Mon, 3 Nov 2014 14:36:10 +0000 (15:36 +0100)]
m_httpd Clean up HttpServerSocket constructor

9 years agom_httpd Remove unused container
Attila Molnar [Mon, 3 Nov 2014 14:34:58 +0000 (15:34 +0100)]
m_httpd Remove unused container

9 years agom_httpd Always timeout connections, set default timeout to 10 seconds
Attila Molnar [Mon, 3 Nov 2014 14:34:20 +0000 (15:34 +0100)]
m_httpd Always timeout connections, set default timeout to 10 seconds

9 years agoAdd stdalgo::isin() and use it to simplify code
Attila Molnar [Sat, 1 Nov 2014 17:21:30 +0000 (18:21 +0100)]
Add stdalgo::isin() and use it to simplify code

9 years agoAdd stdalgo::erase() 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

9 years agoRemove if (!this) check from ConfigTag::readString()
Attila Molnar [Mon, 27 Oct 2014 14:30:02 +0000 (15:30 +0100)]
Remove if (!this) check from ConfigTag::readString()

9 years agoMerge insp20
Attila Molnar [Mon, 27 Oct 2014 14:26:20 +0000 (15:26 +0100)]
Merge insp20

9 years agom_ssl_openssl Store a pointer to the OpenSSLIOHook object in SSL objects
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

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."

9 years agoFix hash_map.h on non-GNU C++ standard library implementations.
Peter Powell [Sat, 4 Oct 2014 12:52:21 +0000 (13:52 +0100)]
Fix hash_map.h on non-GNU C++ standard library implementations.

9 years agoRevert "Fix an off-by-one on registration timeout handling."
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.

9 years agoMerge pull request #929 from rburchell/insp20
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.

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

9 years agom_ssl_gnutls Re-set DH params when the gnutls_certificate_credentials_t struct is...
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