11377 Commits

Author SHA1 Message Date
JD Horelick
2faf5ff670 Make some config strings a bit more professional and use RFC reserved TLD's everywhere 2014-11-09 03:48:48 +01:00
JD Horelick
c35ad9206c Add missing oper-only commands to oper class blocks 2014-11-09 03:48:47 +01:00
Attila Molnar
def45e087d Remove formatting from the IRC link in README.md
It does not work, people don't see the address on the page
2014-10-31 16:36:47 +01:00
Attila Molnar
70b6f126f2 Merge pull request #945 from SaberUK/insp20+even-more-module-manager-fixes
Fix modulemanager not being able to download modules (again!).
2014-10-31 16:11:30 +01:00
Peter Powell
fbe1743e5e Fix modulemanager not being able to download modules (again!). 2014-10-29 12:50:46 +00:00
Attila Molnar
d11323cf34 Allow setting a limit of less than 64 entries for non-ban listmodes via <banlist>
Fixes regression introduced in 234be2f3cb
2014-10-27 21:10:03 +01:00
Attila Molnar
c99a43968f Release v2.0.18 v2.0.18 2014-10-26 18:05:40 +01:00
Attila Molnar
382662a8a4 Remove some dead code found by Coverity 2014-10-26 18:01:24 +01:00
Attila Molnar
680e9e0809 Merge pull request #944 from SaberUK/insp20+gnutls-rnd
[2.0] Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.
2014-10-25 03:58:49 +02:00
Peter Powell
a49fd4cba6 Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.
This is a modified version of 690c372. Fixes #905.
2014-10-25 02:57:51 +01:00
Attila Molnar
0035820e13 Merge pull request #940 from SaberUK/insp20+fix-makefile
[2.0] Fix some small bugs in the makefile template.
2014-10-25 01:16:02 +02:00
Peter Powell
92e84bea61 Use clang++ on FreeBSD 10 instead of g++. 2014-10-24 23:35:00 +01:00
Peter Powell
d04979df09 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.
2014-10-24 23:34:41 +01:00
Attila Molnar
6cc3e6be81 m_delaymsg Add option to disallow NOTICEs too 2014-10-23 17:59:44 +02:00
Adam
9e42a8e8f7 Fix m_banredirect causing bans added for hosts being rewritten as nicks 2014-10-23 00:06:49 -04:00
Attila Molnar
7571d61a32 Fail AAAA DNS queries if inet_ntop() fails 2014-10-22 19:27:32 +02:00
Attila Molnar
8a3b2f8091 Check the return value of getnameinfo() on Windows in insp_inet_ntop() and return NULL if it fails 2014-10-22 19:21:04 +02:00
Attila Molnar
d9b075e182 Set the parameter of -b to the banmask actually removed
This is needed because of the case insensitive match
2014-10-22 00:25:05 +02:00
Attila Molnar
cbb699a705 m_ssl_openssl Add compile time option that allows disabling renegotiations 2014-10-20 21:00:26 +02:00
Attila Molnar
f9a3f7e080 m_ssl_openssl Add compile time option to enable ECDH 2014-10-20 21:00:26 +02:00
Attila Molnar
5fe0592bbc m_ssl_gnutls Add compile time option for allowing sha256 certificate fingerprints 2014-10-20 20:48:23 +02:00
Attila Molnar
cb45d5c3a5 Update <nationalchars> tag documentation 2014-10-20 20:42:17 +02:00
Adam
4e9006c967 Fix watch away numerics, #937 2014-10-19 16:14:24 +02:00
Attila Molnar
a681248b3c m_delayjoin Only send JOIN on mode change if the mode being changed is a prefix mode 2014-10-17 15:40:01 +02:00
Attila Molnar
8cd84786d0 Initialize all fields of issl_session on module load in SSL modules 2014-10-16 21:18:29 +02:00
Attila Molnar
3e20f7bd29 Add interface to SSL modules that allows other modules to obtain the raw SSL session of a socket 2014-10-16 21:15:31 +02:00
Attila Molnar
e04ece9061 m_ssl_gnutls Refcount GnuTLS objects, free them when they are no longer in use instead of at /rehash ssl time 2014-10-16 21:07:25 +02:00
Attila Molnar
7b5703b9a2 m_ssl_openssl Fix debug message 2014-10-15 20:16:05 +02:00
Attila Molnar
177304d637 m_ssl_openssl Reset data_to_write for new sessions 2014-10-15 20:13:00 +02:00
Attila Molnar
8e3cc7d5d4 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 2014-10-15 20:10:04 +02:00
Attila Molnar
fba9bbe4cd m_ssl_openssl Remove bogus errno assignment from CloseSession() 2014-10-15 20:07:55 +02:00
Attila Molnar
5bc1e0de36 Merge pull request #935 from SaberUK/insp20+fix-crlf
Add a workaround for compiling modules with Windows line endings.
2014-10-15 19:55:17 +02:00
Attila Molnar
6a8e8dae95 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.
2014-10-14 17:52:41 +02:00
Attila Molnar
566904ece4 m_ssl_openssl Add user-friendly config options for setting a few OpenSSL context options 2014-10-14 17:40:13 +02:00
Peter Powell
6f65b7c6ca Add a workaround for compiling modules with Windows line endings. 2014-10-13 22:04:47 +01:00
Attila Molnar
856d1b422b m_nationalchars Ask m_spanningtree to rebuild its hashmaps when the national_case_insensitive_map changes
Issue #923
2014-10-13 21:18:12 +02:00
Attila Molnar
48253b1103 m_spanningtree Rebuild serverlist and sidlist when receiving a specific Request
Issue #923
2014-10-13 21:16:51 +02:00
Attila Molnar
156c35c91f m_nationalchars Rebuild the hash map in m_watch when the national_case_insensitive_map changes
Issue #923
2014-10-13 21:12:55 +02:00
Attila Molnar
1377fabfee m_nationalchars Rebuild core hashmaps when the national_case_insensitive_map changes
Issue #923
2014-10-13 21:11:14 +02:00
Attila Molnar
c8d3cce3a7 Merge pull request #934 from SaberUK/insp20+fix-various-issues
Fix various issues detected by Coverity.
2014-10-13 20:37:38 +02:00
Peter Powell
d8fe6df7a7 Kill some logically dead code detected by Coverity.
- m_watch: wl has already been confirmed to not be NULL on L161.
2014-10-13 19:16:04 +01:00
Peter Powell
ef335eb2de Replace dodgy use of const char* and memcpy with std::string.
This was backported from commit e01df63 in master.
2014-10-13 19:15:58 +01:00
Attila Molnar
9bb839b6a2 Merge pull request #933 from SaberUK/insp20+fix-llvm34
Fix various warnings when building with LLVM 3.5.
2014-10-13 19:07:44 +02:00
Peter Powell
6935ce2956 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.
2014-10-13 06:18:14 +01:00
Peter Powell
402a1bb010 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]
2014-10-13 06:18:10 +01:00
Attila Molnar
44542c1f1a m_ssl_openssl Allow configuring raw OpenSSL context options 2014-10-10 14:26:09 +02:00
Attila Molnar
b4dc9d871c m_ssl_openssl Disable session caching and session tickets 2014-10-10 14:15:37 +02:00
Attila Molnar
9179e51e51 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
2014-10-10 14:10:24 +02:00
Attila Molnar
21f99f133e m_ssl_openssl Clear the error queue before every SSL_* call 2014-10-08 02:36:00 +02:00
Attila Molnar
529d26bdaf Merge pull request #931 from SaberUK/insp20+fix-non-gnu-stl
Fix hash_map.h on non-GNU C++ standard library implementations.
2014-10-06 17:40:35 +02:00