aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra
Commit message (Expand)AuthorAgeFilesLines
...
* | Split IOHook into IOHook and IOHookProvider•••Create one IOHook instance for each hooked socket which contains all the hook specific data and read/write/close functions, removing the need for the "issl_session" array in SSL modules. Register instances of the IOHookProvider class in the core and use them to create specialized IOHook instances (OnConnect/OnAccept). Remove the OnHookIO hook, add a dynamic reference to ListenSocket that points to the hook provider (if any) to use for incoming connections on that socket. For outgoing connections modules still have to find the IOHookProvider they want to use themselves but instead of calling AddIOHook(hookprov), now they have to call IOHookProvider::OnConnect() after the connection has been established. Gravatar Attila Molnar2014-01-222-332/+226
* | Add the ability to have multiple SSL profiles•••SSL profiles are now used instead of fixed SSL settings for everything SSL, making it possible to use completely different settings for each listener and outgoing connection. Outgoing connections are broken until the next commit. Gravatar Attila Molnar2014-01-222-354/+790
* | m_ssl_gnutls Create GNUTLS_NEW_CERT_CALLBACK_API and cert_cb_last_param_typeGravatar Attila Molnar2014-01-221-15/+21
* | Add m_starttls and remove it from m_ssl_gnutls, which allows it to work with ...Gravatar Adam2014-01-211-65/+1
* | Add m_ldap, and convert m_ldapoper and m_ldapauth to use it.Gravatar Adam2013-12-193-657/+572
* | Use gnutls_rnd instead of gcry_randomize on newer GnuTLS versions.•••Also, fix a bug where eval() caused compile errors. Gravatar Peter Powell2013-11-181-3/+14
* | Use WriteNumeric() everywhere we send numerics and include the user's nick au...Gravatar Adam2013-11-121-4/+4
* | Automatically register ServiceProviders created by modulesGravatar attilamolnar2013-09-0810-19/+0
* | Replace OnRehash() with ReadConfig() that is called on boot, on module load a...•••This eliminates the need for calling OnRehash() in init() Gravatar attilamolnar2013-08-3010-38/+11
* | Merge insp20Gravatar attilamolnar2013-08-302-2/+10
|\|
| * m_ssl_gnutls Fix feature testing and cipher suite related errors on older Gnu...•••Use the (old) LIBGNUTLS_VERSION_* defines as a fallback when GNUTLS_VERSION_* is unavailable Fixes #595 reported by @rhylan Gravatar attilamolnar2013-08-131-1/+9
| * m_ssl_openssl Fix inverted check that prevented certificates from being recog...Gravatar attilamolnar2013-07-161-1/+1
* | Fix various small issues.•••- Add CXX11_OVERRIDE to *Regex::Matches and *RegexFactory::Create. - Fix documentation comment on regex_string. - Fix various code duplication/layout issues. Gravatar Peter Powell2013-08-275-28/+13
* | Make all regex modules throw the same exception on error.Gravatar Peter Powell2013-08-275-50/+5
* | Clean up the build system properties and related code.•••- Deduplicate getcompilerflags, getdependancies, getlinkerflags. - Remove $NoPedantic (add -Wno-pedantic to $CompileFlags instead). - Remove --enable-freebsd-ports-openssl and all related code (this will be replaced with --no-pkg-config=[name] in the future). - Remove some unused build system properties. - Remove support for caching third party include and library paths (can cause unexpected problems when they change). Gravatar Peter Powell2013-08-163-10/+4
* | Remove $ModDep commentsGravatar attilamolnar2013-08-156-7/+0
* | Add <path> keys for all of the compile-time paths.•••Also, make all paths in the config relative to their associated directory. This reverts a change in 2.0 which turned out to be a terrible idea, especially for system-wide installations. Gravatar Peter Powell2013-08-122-8/+8
* | Automatically attach modules to eventsGravatar attilamolnar2013-08-0411-26/+0
* | Modify the log message to contain the log type.Gravatar Peter Powell2013-08-042-16/+16
* | Change modules to use the MODNAME constant when logging.•••The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them. Gravatar Peter Powell2013-08-047-35/+35
* | Allow the user to specify any hashing mechanism supported by the underlying S...Gravatar Daniel Vassdal2013-07-062-5/+25
* | Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-0414-18/+0
* | Add RE2 regex module.Gravatar Peter Powell2013-06-161-0/+89
* | Create SSLIOHook interface that provides GetCertificate()Gravatar attilamolnar2013-06-072-28/+18
* | Create IOHook interface (extracted from Module)Gravatar attilamolnar2013-06-072-653/+698
* | Convert a ton of uses of MAXBUF to use a fixed buffer size.Gravatar Peter Powell2013-06-062-4/+4
* | Compare to ServerLimits::MaxLine instead of MAXBUF.Gravatar Peter Powell2013-06-061-1/+1
* | Reserve ServerLimits::MaxLine instead of MAXBUF.Gravatar Peter Powell2013-06-061-1/+1
* | Merge insp20Gravatar attilamolnar2013-06-064-64/+99
|\|
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-051-1/+0
| * m_pgsql Same fix as 0e09600a431d0e0f2cde6457e088d84caf6d6f5dGravatar attilamolnar2013-06-041-8/+8
| * m_mysql Fix escaping strings longer than MAXBUF/2•••Quotes from the documentation: "You must allocate the to buffer to be at least length*2+1 bytes long. (In the worst case, each character may need to be encoded as using two bytes, and you need room for the terminating null byte.)" "The return value is the length of the encoded string, not including the terminating null character." http://dev.mysql.com/doc/refman/5.6/en/mysql-real-escape-string.html Gravatar attilamolnar2013-06-011-6/+12
| * m_mysql Fix crash on rehash when the database tags have been changed in the c...Gravatar attilamolnar2013-05-221-5/+6
| * m_geoip Set cc in OnSetConnectClass to the newly created string if it was NULLGravatar attilamolnar2013-05-181-2/+3
| * m_ssl_gnutls Call gnutls_transport_set_errno() on Windows onlyGravatar attilamolnar2013-05-021-0/+14
| * Fix gnutls (again) on Windows by using gnutls_transport_set_errno()Gravatar Adam2013-05-021-42/+56
* | Clean up the FileReader class and all of the modules that use it.•••- Modules which use this class will now have to catch a CoreException when opening files if they wish to ignore the failed loading of a file. - m_randquote has been cleaned up massively and the RANDQUOTE command has been removed as it was pretty much useless. Gravatar Peter Powell2013-05-271-6/+6
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-195-25/+25
* | Deduplicate hex string creation codeGravatar attilamolnar2013-05-182-2/+2
* | Tidy up keywords on module methods.•••- Remove virtual keyword from a ton of methods which don't need it. - Add override keyword to a ton of methods which do need it. Gravatar Peter Powell2013-05-1513-106/+106
* | Replace some C-isms with C++-isms.•••* 'const char*' to 'const std::string&'. * snprintf to std::string concatenation. * Replace duplicated OneOfMatches with InspIRCd::MatchMask. Gravatar Peter Powell2013-05-151-16/+1
* | Add method for writing server notices.•••This allows us to send a server notice to a user without worrying about whether they are registered or not. If a user receives a server notice and they are not registered then the nickname field will contain an asterisk instead of their nick name. Gravatar Peter Powell2013-05-142-6/+6
* | Merge insp20Gravatar attilamolnar2013-04-281-3/+36
|\|
| * m_ssl_gnutls Add ability to load DH params from file•••This greatly decreases the load time because the DH parameters no longer have to be (re)generated each time the module is loaded Gravatar attilamolnar2013-04-241-2/+23
| * Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing WSAE...Gravatar Adam2013-04-161-0/+12
* | Timer changes and TimerManager enhancements•••Timer::Tick() now has a bool return value: if false is returned the timer is deleted using operator delete, otherwise, if it's a repeating timer then it's rescheduled (readded) Timers are removed from the TimerManager automatically at destruction Timers are now stored in a multimap instead of a sorted vector Gravatar attilamolnar2013-04-211-4/+9
* | Tidy up source files:•••- Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues. Gravatar Peter Powell2013-04-129-14/+14
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-127-34/+34
* | Convert ISUPPORT to use a map instead of a string.Gravatar Peter Powell2013-04-112-5/+5
* | m_geoip: Fix compilationGravatar ChrisTX2013-04-021-1/+1