aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra
Commit message (Expand)AuthorAgeFilesLines
* Fix a bunch of harmless compiler warnings on recent GCC releases.Gravatar Peter Powell2018-10-262-2/+8
* Implement support for IPv6 GeoIP lookups.Gravatar Peter Powell2018-10-131-11/+28
* Fix SQL modules using "provider" in <database> instead of "module".•••This fixes a regression introduced in 97a1d642. Gravatar Peter Powell2018-09-273-3/+3
* Fix warnings about using std::auto_ptr on C++11 or newer.Gravatar Peter Powell2018-08-211-2/+3
* Fix a few things that should be marked as override but aren't.Gravatar Peter Powell2018-08-213-3/+3
* Make more config stuff case insensitive.Gravatar Peter Powell2018-07-248-20/+20
* Use mysql_real_escape_string instead of mysql_escape string.•••This is not exploitable as far as I know but it is probably best that we use the newer function just in case. Closes #649 (although the attack mentioned in that issue was not feasible). Gravatar Peter Powell2018-07-151-3/+2
* Merge tag 'v2.0.26' into master.Gravatar Peter Powell2018-04-221-0/+7
|\
| * Update the GeoIP ExtItem when CGI:IRC sets the real IP (#1471)•••Since CGI:IRC calls it's 'ChangeIP()' either from 'OnCheckReady()' or 'OnUserRegister()', both of which are called after the user has sent NICK/USER, we can safely skip re-setting the ExtItem prior to this point. This skips the first 'OnSetUserIP()' from 'User::AddUser()' as the 'OnSetConnectClass()' catch handles the initial setting.Gravatar genius30002018-03-301-1/+8
| * m_ssl_openssl: Remove deprecated API members.•••Backported from 2afc1af4639ae2bbef397f4f6acc834950017d91. Gravatar Wade Cline2018-03-021-3/+12
* | Add ConfigTag::getUInt for reading unsigned config values.Gravatar Peter Powell2018-04-164-9/+9
* | Remove the default value in ConfigTag::get{Duration,Float,Int}.Gravatar Peter Powell2018-04-163-5/+5
* | Include modules/whois.h directly from files that use it.Gravatar Peter Powell2018-04-081-0/+1
* | Move OnStats from the core to a cross-module event.•••Some core code still exists in the XLine system but this will be replaced when the XLine system is replaced later. Gravatar Peter Powell2018-04-081-2/+4
* | Fix some more oversights in m_geoip.•••- Add the G: extban to the EXTBAN 005 token. - Use CXX11_OVERRIDE with ReadConfig and OnCheckBan. Thanks to @genius3000 for pointing these out. Gravatar Peter Powell2018-04-071-2/+8
* | Fix disabling the GeoIP extban in m_geoip.Gravatar Peter Powell2018-04-071-1/+1
* | SQL: Add HasColumn() to check if a result contains a named column.Gravatar Daniel Vassdal2018-04-073-3/+53
* | Implement support for banning users from channels by country code.Gravatar Peter Powell2018-04-061-8/+49
* | Move m_sslrehashsignal to the extra directory.•••This module uses platform-specific behaviour that does not work on Windows. Gravatar Peter Powell2018-02-171-0/+64
* | Fix building on Windows (mostly).Gravatar Peter Powell2018-02-171-2/+2
* | Improve and modernize the SQL system API.•••- Move everything into the SQL namespace and drop the SQL prefix. - Move SQLProvider::PopulateUserInfo to SQL::PopulateUserInfo. - Rename SQLEntry to SQL::Field and clean up. - Rename SQLEntries to SQL::Row. - Rename SQLerror to SQL::Error and clean up. - Rename SQLerrorNum to SQL::ErrorCode and drop the SQL_ prefix. - Rename ParamL to SQL::ParamList. - Rename ParamM to SQL::ParamMap; - Make implementing SQLQuery::OnError mandatory. - Redo most of the documentation in the sql header. Gravatar Peter Powell2017-12-223-64/+64
* | Merge pull request #1370 from clinew/insp30+openssl-crl•••Add OpenSSL CRLs.Gravatar Peter Powell2017-12-211-0/+45
|\ \
| * | Add OpenSSL CRLs.•••The 'crlfile' argument can point to a file that contains valid CRLs. The 'crlpath' argument can point to a directory which contains CRLs, albeit in OpenSSL's special hashed/symlink format. The 'crlmode' option 'chain' checks all certificates in the chain while the option 'leaf' checks only the leaf certificate in a chain. Gravatar Wade Cline2017-12-141-0/+45
* | | Remove usage of deprecated API members in m_ssl_openssl.•••Closes #1440. Gravatar Peter Powell2017-12-161-5/+19
|/ /
* | Bump the minimum versions of GnuTLS to 2.0.0 and OpenSSL to 1.0.0.•••Old TLS libraries should not be used anymore due to security risks. Gravatar Peter Powell2017-11-302-12/+2
* | Improve TLS security configuration in m_ssl_openssl.•••- Always disable SSLv3. Unreal has already done this so clients will have to upgrade anyway. - Disable TLSv1.0 by default. Various security standards (e.g. PCI DSS) are already planning on sunsetting this so we should too. Gravatar Peter Powell2017-11-301-4/+3
* | Convert GenRandom to std::function.Gravatar Peter Powell2017-11-251-5/+4
* | Add the override keyword in places that it is missing.•••GCCs warnings for this are much better than Clangs. Gravatar Peter Powell2017-11-214-19/+19
* | Unite SSL service providers and SSL profile classesGravatar Attila Molnar2017-11-133-155/+215
* | Merge tag 'v2.0.25' into master.Gravatar Peter Powell2017-11-122-3/+1
|\|
| * Update wiki links to use HTTPS and point to the correct pages.•••When we release 3.0 these links will break as they will point to the pages for 3.0 rather than 2.0. Gravatar Peter Powell2017-10-152-3/+1
| * m_ldapauth: fix providing username in PASS•••This has never worked because it never prepended attribute= to the search string. It also would prefer matching nick/ident over the user string provided which is inconsistent, since your ability to authenticate using PASS would depend on a ldap entry not existing with your current nick/ident. Instead, use username provided in PASS and then fallback to nick/ident. Gravatar Adam2017-03-201-29/+18
* | Fix some SSL module issues.•••- Use the same dhparams name in m_ssl_openssl as in other modules. - Fix building m_ssl_mbedtls. Gravatar Peter Powell2017-11-012-1/+7
* | Add support to IOHook for retrieving the hostname sent via SNI.Gravatar Peter Powell2017-10-292-0/+29
* | Add PackageInfo directives for Debian.Gravatar Peter Powell2017-10-2111-0/+12
* | Clean up OnCleanup.•••- Switch to using ExtensionItem::ExtensibleType for the type instead of TargetTypeFlags. - Pass the extensible to OnCleanup as an Extensible pointer instead of a void pointer. - Call OnCleanup for memberships as well as channels and users. - Rewrite event documentation to remove outdated references. Gravatar Peter Powell2017-10-183-6/+6
* | Fix a broken distro constraint in the m_ssl_gnutls PackageInfo.Gravatar Peter Powell2017-10-121-1/+1
* | Convert a bunch of time-related config options to getDuration.Gravatar Peter Powell2017-09-031-1/+1
* | Fix a broken distro constraint in the m_ssl_openssl PackageInfo.Gravatar Peter Powell2017-08-111-1/+1
* | Add CXX11_OVERRIDE to overridden members that lack it.•••This fixes a ton of warnings when building on compilers that default to C++11 or newer. Gravatar Peter Powell2017-07-121-4/+4
* | Fix LibreSSL not having a shim for the OpenSSL 1.1 BIO API.Gravatar Peter Powell2016-11-231-1/+1
* | Fix OpenSSL build errors caused by BIO/BIO_METHOD now being opaque.Gravatar Peter Powell2016-10-251-5/+45
* | Add CentOS PackageInfoGravatar Adam2016-09-168-0/+10
* | Merge pull request #1222 from SaberUK/master+warnings•••Fix various compiler warningsGravatar Attila Molnar2016-09-162-0/+12
|\ \
| * | Fix m_ldap warning about OpenLDAP being deprecated on OS X.Gravatar Peter Powell2016-09-151-0/+5
| * | Fix m_geoip warning about the use of C++11 features.Gravatar Peter Powell2016-09-151-0/+7
* | | Rewrite the build system directive parser.Gravatar Peter Powell2016-09-1612-38/+64
|/ /
* | Merge insp20Gravatar Attila Molnar2016-09-021-1/+3
|\|
| * m_sqlite3 Fix possible memory leak when opening a database failsGravatar Attila Molnar2016-08-171-1/+3
* | Fix whitespace issuesGravatar Attila Molnar2016-09-021-1/+1