summaryrefslogtreecommitdiff
path: root/src/modules/extra
Commit message (Collapse)AuthorAgeFilesLines
* Fix for small display issue, when both ssl modules are loaded, both output a ↵Gravatar brain2007-02-272-0/+14
| | | | | | | | | | 'is ssl' numeric for ssl users in whois. This fix ensures that only an ssl module thats listening on client ports will output the whois. Theres no need to bind openssl and gnutls both to client ports, however some people use openssl for server ports and gnutls for client ports, or vice versa. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6615 e03df62e-2008-0410-955e-edbf42e46eb7
* Make these vendor modules.Gravatar peavey2007-02-201-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6604 e03df62e-2008-0410-955e-edbf42e46eb7
* And change this to gnutls in the debug message.Gravatar brain2007-02-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6552 e03df62e-2008-0410-955e-edbf42e46eb7
* Catch the ModuleException thrown when AddIOHook fails, so that we can make a ↵Gravatar brain2007-02-082-16/+30
| | | | | | port hook failure nonfatal. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6551 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix ipv6 ass-u-me'sGravatar brain2007-02-071-2/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6540 e03df62e-2008-0410-955e-edbf42e46eb7
* To be more specific, specify rpath() macro hereGravatar brain2007-02-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6537 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra safety checks while exchanging certs, just in caseGravatar brain2007-02-061-4/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6531 e03df62e-2008-0410-955e-edbf42e46eb7
* Move quitting of clients to a central Cull List, and do quitting outside ↵Gravatar peavey2007-02-052-167/+149
| | | | | | userrec and in main loop. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6497 e03df62e-2008-0410-955e-edbf42e46eb7
* Better error reporting of failures to read certs in gnutls by calling ↵Gravatar brain2007-02-031-10/+14
| | | | | | gnutls_strerror(). Man this api is so much nicer than the ugly one in ssl :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6487 e03df62e-2008-0410-955e-edbf42e46eb7
* Better logging for openssl, using SSL_print_error_cb() which calls a ↵Gravatar brain2007-02-031-10/+26
| | | | | | callback for error output (the default of outputting to stdout sucks) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6486 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix this so that it works with outbound connects again.Gravatar brain2007-01-281-9/+18
| | | | | | | Also fix it to cope with EAGAIN properly in handshake negotiation without returning 1 from Write() (when nothing was actually written at the upper layer of the transport!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6451 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove debug, add a few commentsGravatar brain2007-01-281-37/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6450 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix broken openssl outbound connects.Gravatar brain2007-01-281-12/+76
| | | | | | | | A record needs to be kept of if this session was initially outbound or inbound, so we know if we need to re-call SSL_connect or SSL_accept on handshake failure, we also need to have two SSL_CTX's, one initialized as a client context and one as a server context (this is EW, but i guess its just how openssl does stuff) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6449 e03df62e-2008-0410-955e-edbf42e46eb7
* Correctly allow all supporting versions of PostgreSQL to use secure string ↵Gravatar peavey2007-01-271-1/+1
| | | | | | escaping. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6443 e03df62e-2008-0410-955e-edbf42e46eb7
* The mob has spoken: PQescapeStringConn is used for pgsql >= 8.1.4Gravatar peavey2007-01-271-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6442 e03df62e-2008-0410-955e-edbf42e46eb7
* Add check for openssl >= 0.9.7, and fix for if the library cant be found at allGravatar brain2007-01-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6424 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoops put this back to 3.3Gravatar brain2007-01-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6423 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix broken function vcheck() that checks one dot-delimited version string ↵Gravatar brain2007-01-211-1/+1
| | | | | | against another git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6422 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra macro pkgconfversion("packagename", "version");Gravatar brain2007-01-211-1/+1
| | | | | | | | | dies if the version you specify isnt installed. Also added to m_sqlite3: pkgconfversion("sqlite3", "3.3") Note: this will die at configuration time, not compilation time. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6421 e03df62e-2008-0410-955e-edbf42e46eb7
* FixingGravatar brain2007-01-201-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6407 e03df62e-2008-0410-955e-edbf42e46eb7
* Apply fixes for buffering of headers, and a test module both by psychonGravatar brain2007-01-201-0/+86
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6406 e03df62e-2008-0410-955e-edbf42e46eb7
* Move QueryQueue class into m_sqlv2 to prevent flat-out duplication of ↵Gravatar brain2007-01-173-246/+136
| | | | | | identical code in pgsql and mysql modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6368 e03df62e-2008-0410-955e-edbf42e46eb7
* Mass comment removal.Gravatar brain2007-01-177-249/+32
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6367 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove/fix unused variable warningGravatar brain2007-01-172-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6366 e03df62e-2008-0410-955e-edbf42e46eb7
* It says something about how excessive our debug output is when the ssl ↵Gravatar brain2007-01-172-124/+7
| | | | | | modules have 'cascades' of 'if-then-else' whos job is ONLY to output debug! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6365 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix possible segfault if sql query failed. Using a free'd char is probably ↵Gravatar peavey2007-01-151-6/+4
| | | | | | not a good thing. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6347 e03df62e-2008-0410-955e-edbf42e46eb7
* Hook qlite3_update_hook to queries to also catch affected rows on ↵Gravatar peavey2007-01-141-2/+18
| | | | | | UPDATE/INSERT/DELETE. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6344 e03df62e-2008-0410-955e-edbf42e46eb7
* I forgot to exec("gnutls-config --libs") in the configure macrosGravatar brain2007-01-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6337 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove some old destroy code not needed with InpSocket.Gravatar peavey2007-01-141-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6336 e03df62e-2008-0410-955e-edbf42e46eb7
* Make REHASH work.Gravatar peavey2007-01-141-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6335 e03df62e-2008-0410-955e-edbf42e46eb7
* Dont need to send anything on the notifier socket.Gravatar peavey2007-01-141-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6334 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove DOS newlines.Gravatar peavey2007-01-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6333 e03df62e-2008-0410-955e-edbf42e46eb7
* Now with SQLite3 support. Fully functional and (hopefully) working.Gravatar peavey2007-01-141-13/+168
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6332 e03df62e-2008-0410-955e-edbf42e46eb7
* OMG SQLITE3 support, almost there now =)Gravatar peavey2007-01-141-0/+532
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6321 e03df62e-2008-0410-955e-edbf42e46eb7
* Make m_sqlv2.h::SQLquery extend 'classbase', for easy passing as deque ↵Gravatar peavey2007-01-141-26/+26
| | | | | | parameter. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6318 e03df62e-2008-0410-955e-edbf42e46eb7
* Bang! Gone due to new buildsystem.Gravatar peavey2007-01-141-13/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6315 e03df62e-2008-0410-955e-edbf42e46eb7
* Add eval() and exec() macros, that evaluate perl and execute commands at ↵Gravatar brain2007-01-145-13/+7
| | | | | | configure time, rather than delaying them with backticks till compile time. This picks up any errors sooner. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6311 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra stuff to improve buildsystem, calculate lib and include dirs at ↵Gravatar brain2007-01-138-37/+5
| | | | | | | | | configure time rather than at build time. This means that we can also throw errors at configure time if we cant find the libraries, rather than erroring at buildtime like we used to. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6306 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy up the buildsystem a lot by encapsulating repeated detection routines ↵Gravatar brain2007-01-134-75/+25
| | | | | | | | | for lib dirs and header dirs in make/utilities.pm. See the pl files in src/modules/extra for how to use the functions. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6305 e03df62e-2008-0410-955e-edbf42e46eb7
* Get flags for sqlite3.Gravatar peavey2007-01-131-0/+30
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6304 e03df62e-2008-0410-955e-edbf42e46eb7
* Change this to use our md5 provider rather than MD5() in the queryGravatar brain2007-01-131-1/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6303 e03df62e-2008-0410-955e-edbf42e46eb7
* Improve handling of backend server being down. Also decraq some debug output ↵Gravatar peavey2007-01-121-16/+16
| | | | | | that was really confusing me. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6301 e03df62e-2008-0410-955e-edbf42e46eb7
* More tidyup.Gravatar peavey2007-01-111-8/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6297 e03df62e-2008-0410-955e-edbf42e46eb7
* Only use force if necessary! Tidy up debug output.Gravatar peavey2007-01-111-6/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6296 e03df62e-2008-0410-955e-edbf42e46eb7
* pgsql should now work thx to added posibility to force a fd out of the ↵Gravatar peavey2007-01-111-16/+10
| | | | | | socketengine. This should only be used as a *last resort* when dealing with 3rd party libs that invalidates a file descriptor beyond your control. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6295 e03df62e-2008-0410-955e-edbf42e46eb7
* Closer now, but somehow libpq invalidates the file descriptor on server ↵Gravatar peavey2007-01-111-52/+34
| | | | | | shutdown leaving us in limbo. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6294 e03df62e-2008-0410-955e-edbf42e46eb7
* reconnects still broken, but getting there.Gravatar peavey2007-01-101-30/+53
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6293 e03df62e-2008-0410-955e-edbf42e46eb7
* SQLConn rewritten to use EventHandler instead of InspSocket. This is much ↵Gravatar peavey2007-01-101-478/+419
| | | | | | neater and gives total control of destroy and delete of resources. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6292 e03df62e-2008-0410-955e-edbf42e46eb7
* Document dns caching, add a "bool cached" to OnLookupComplete method in ↵Gravatar brain2007-01-071-2/+2
| | | | | | Resolver, and and add " -- cached" to end of 'looking up your host' string if their result is a cached result git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6254 e03df62e-2008-0410-955e-edbf42e46eb7
* DNS caching stuff (almost done)Gravatar brain2007-01-071-4/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6252 e03df62e-2008-0410-955e-edbf42e46eb7