brain
5289be4268
Add move-match-to-head-of-queue stuff to pcre filter
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6793 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-14 11:54:20 +00:00
brain
35521473bb
Working for m_filter, needs implementing in m_filter_pcre
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6792 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-14 11:43:00 +00:00
brain
26e22f0cad
Some tweaks suggested by pingbad, dont use yet :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6791 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-14 11:33:59 +00:00
brain
5fdf364a22
Add a pair of curly braces because gcc will whine otherwise about declaration of a variable within a case statement
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6790 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-14 10:57:08 +00:00
brain
09e1cd32a3
Find out from the commit notices that we're still using ctime() here and should be using InspIRCd::TimeStr (ick)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6789 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-14 10:47:23 +00:00
brain
6b99d038e5
Dont use send_mode_explicit protocol call, use send_mode, which doesnt try and force the mode through via non-FMODE
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6788 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-12 19:28:57 +00:00
brain
bb848f8fd2
The hmac stuff was slightly wrong, calculating the 2nd part
...
left a concatenation outside the bracket
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6787 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 20:24:04 +00:00
brain
f94d5010fc
D'oh, this is what causes it to randomly not allow the HMAC, when theres an = in the string, it borks!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6786 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 18:43:11 +00:00
brain
7fe2cda433
And spell it right.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6785 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 18:38:23 +00:00
brain
88e768d246
Minor change, easy to roll back if it fucks up
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6784 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 18:37:55 +00:00
brain
30c9ff84e8
Whoopsie
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6783 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 18:15:43 +00:00
brain
715074dd10
Wait longer before sending data on the connect than on the accept
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6782 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 18:12:13 +00:00
brain
21f284647b
Revert
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6781 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 18:06:33 +00:00
brain
eedb276bcb
Test tweak to make it sync faster
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6780 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 17:59:00 +00:00
brain
ca7ac1c188
Different way of generating random string
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6779 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 17:48:52 +00:00
brain
54f4abc93d
Give information in snomask +l to what type of auth was used
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6778 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 17:17:17 +00:00
brain
3a89c8e89e
Handle non-hmac servers smarter without having to globally turn off hmac
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6777 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 17:11:33 +00:00
brain
7f00015727
Add config <options:disablehmac> to support disabling of HMAC, and tidy up to detect if the other side hasnt got it enabled and we did, or if we enabled it and dont have sha256 (that would be an oops)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6776 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 16:42:09 +00:00
brain
96798509ac
Remove debug: This now works!
...
WARNING: I have no idea how this will react to being linked to a past version without HMAC-challenge-response..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6775 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 16:21:38 +00:00
brain
90566d23b1
I think we're almost there now
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6774 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 16:15:13 +00:00
brain
39361603e3
More fucking around
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6773 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 16:04:13 +00:00
brain
a22c47d19a
This is likely fucked up beyond all recognition. Today is fubar day :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6772 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 15:55:06 +00:00
brain
8eec77bdde
Debug, and we seem to be sending capab twice
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6771 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 15:34:14 +00:00
brain
4e6b5f4b56
Check against the HMAC challenge now: *UNTESTED*
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6770 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 15:24:43 +00:00
brain
fdecf7fb70
Add basic HMAC suggested by jilles to make the auth not suck -- this is probably buggy, and the other side doesnt auth yet. do not use.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6769 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 15:18:13 +00:00
brain
663a113180
Test code that pretends to send a hashed value if its got a challenge - don't use this, it wont connect
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6768 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 14:46:39 +00:00
brain
be36d92f3d
Added ability to send and receive a challenge, dont do anything with it yet
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6767 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 14:07:18 +00:00
brain
4af9d41436
Add methods needed for storing challenge string
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6766 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-09 13:51:33 +00:00
brain
54b211e175
Make the max '3 dots' and not 2
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6765 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 22:36:32 +00:00
brain
b4ebbfad6f
Fix to reinsert sockets into the list as read event
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6764 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 19:48:57 +00:00
brain
772dc6c474
Add support for solaris 10 IO Completion Ports, contributed by nenolod
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6763 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 18:08:20 +00:00
brain
feebd9bbc3
It might be slightly slower, but memset the array as we're using it as a matrix not a simple char*. This will mean that the possibility of past data being left behind in the buffer wont happen
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6762 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 17:10:48 +00:00
brain
6357a5887e
Should change the header too
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6761 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 17:04:50 +00:00
brain
d05aafc228
Make the lines wide enough to hold the new data
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6760 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-08 17:03:45 +00:00
brain
a772b4dbf5
Add licensing headers to files which are missing them and make sure they are up to date in others (e.g. point at the developer page on the wiki not list names)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6759 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-07 21:01:01 +00:00
brain
0a6adff4e0
Set the signals to 'quick exit' before the fork, not straight after, because theres a very slight chance of minor race condition if the child process sends kill() before we signal() otherwise.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6758 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-07 16:12:12 +00:00
brain
45d76881d8
Gorgonzola!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6756 e03df62e-2008-0410-955e-edbf42e46eb7
v1.1.5
2007-04-06 21:19:58 +00:00
brain
ad40b6420e
More information in error when a module cant be loaded
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6755 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:44:46 +00:00
brain
ea888f7b6a
Change wording of message
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6754 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:22:06 +00:00
brain
86c8e5fb13
Fix params passed on /restart
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6753 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:21:14 +00:00
brain
f5d4a05c9d
Increase sleep delay to 20, to provide reading time for the message
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6752 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:20:05 +00:00
brain
4abece241c
Missing newline
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6751 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:18:36 +00:00
brain
0811c418ab
Add a facility to allow starting as root, bin/inspircd -runasroot
...
if you actually specify this parameter, the daemon displays a huge warning in caps, then hangs for 5 secs to give you chance to ctrl+c if you made a mistake.
If you dont ctrl+c it, it then starts normally.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6750 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 20:17:59 +00:00
brain
f9110f02e7
We had to roll our own time function because some craqsmoker thought having a carriage return on the end of ctime and asctime was a great idea, and the only other solution is to fanny around with
...
strftime.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6749 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 19:18:08 +00:00
brain
578f32db3c
Show expiry times of glines, klines, qlines and elines as the time theyre due to expire rather than number of secs (thanks bricker)
...
Oh, and i hate C time formatting functions.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6748 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 19:03:11 +00:00
brain
296661c5c5
Check for people with lack of clue putting "!" in gline/kline/zline masks :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6747 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 18:43:58 +00:00
peavey
20907e9c0d
Add <hostname:charmap> to example.conf
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6746 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 18:43:23 +00:00
brain
3d1ad0939f
Fix bug #224 by refreshing the security ip cache every hour. The easier solution of course is not use crappy dynamic ips :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6745 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 14:03:06 +00:00
brain
39f2fa9ccf
Fix the previous commit better - always copy the null terminator (oops)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6744 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 13:07:55 +00:00
brain
f3e184c540
Fix issue spotted by devious - if a value is defined and a later rehash clears the value to empty, the value is not unset properly because it tries to memcpy zero bytes to the value -
...
this means memcpy just returns immediately. Now if the string value is 0 in length we copy one byte instead (which just copies the null terminator)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6743 e03df62e-2008-0410-955e-edbf42e46eb7
2007-04-06 13:04:49 +00:00