summaryrefslogtreecommitdiff
path: root/src/wildcard.cpp
Commit message (Expand)AuthorAgeFilesLines
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-1/+1
* national_case_sensitive_map -> national_case_insensitive_map.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10861 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-12-071-4/+4
* Move stuff to use ASCII map where required.•••Also move this out of being a member totally, as it breaks (gah) and is already untidy.. to be revisited. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10858 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-12-071-4/+4
* national_case_sensitive_map must be static, thanks to the match stuff being s...•••Default to national charset map instead of rfc map, as modules may change the pointer. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10857 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-12-071-45/+53
* Roll back core matcher to the 1.1 design, which doesnt fail various unit tests•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10564 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-201-55/+41
* Rename lowermap to rfc_case_insensitive_map, add case_sensitive_map.. adjust ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10337 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-281-1/+1
* formatting..•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10303 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2008-08-261-2/+0
* Iteration 5 of wildcard matching. Fixes broken matching for certain condition...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10302 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2008-08-261-9/+13
* Actually, we did manage to make a faster match than znc, when casemapping is ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10222 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-221-35/+44
* There is no breakage here *jedi mind trick*•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10219 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-221-9/+3
* Match with the right args at least..•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10218 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-221-1/+6
* Match conversion stuff.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10216 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-221-16/+8
* match() is no longer a function+no header, now a static method of InspIRCd cl...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10212 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-08-211-114/+55
* Fix missing bounds checks in wildcard.cpp causing crash in bug #590 and related•••Add test cases for wildcards to pick this up in future regression testing plus a bunch of other edge cases git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10147 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-08-171-6/+19
* Remove last vestige of libircdfoo, by changing tag into a single identifier...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-07-291-1/+1
* Fix wildcard matching in win32, seems that incrementing an iterator dereferen...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9706 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-05-121-8/+19
* Add test suites for edge cases and in the process, spot a crash in the new co...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9682 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-05-091-0/+6
* Convert CIDR matching and wildcard matching to operate on std::strings•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9681 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-05-091-46/+40
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-101-1/+1
* Oops: Fix one version of overrided match() always being case sensitive..•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8310 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-10-231-1/+2
* Remove the need for a bunch of the hard coded arrays/hashes by scanning the s...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8307 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-10-221-0/+2
* Remove more unnecessary header traffic•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7887 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-08-271-1/+0
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-1/+148
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are au...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2007-07-161-148/+1
* Same tweak, again•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7095 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-05-211-1/+1
* Windows support. Tested and working to compile on freebsd and linux. Next ste...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-05-191-5/+5
* g++ is picky about default params with overloading•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6324 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-141-0/+6
* Add alias:matchcase config setting (per-alias, determines wether to match cas...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6319 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-01-141-0/+56
* Jesus, look who's the commit whore today. More header updates, and removal of...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-12-151-8/+3
* Fix all the _FORTIFY_SOURCE warnings except "punned pointer".•••We CANNOT fix this, as it is the recommended (and only) way to dlsym a symbol from a .so file. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5770 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-11-191-1/+1
* Wahhhhhhhhhhhh bwahahaha. Mass commit to tidy up tons of messy include lists•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5080 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-301-1/+0
* Move lowermap[] into a pre-initialised const array in hashcomp.h,•••get rid of InspIRCd::MakeLowertab() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4951 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-181-2/+1
* Just to mess with om's head, remove helperfuncs.h from everywhere•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-1/+1
* Move whowas into InspIRCd•••Tidy up lowermap extern (for now, we cant do much but have this as extern) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4876 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-2/+1
* Move the socket functions like insp_ntoa into their own namespace. They arent...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4828 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-0/+2
* Allow nick!ident@ and ident@ portions in a CIDR mask if given, use match() wi...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4739 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-061-1/+1
* Support CIDR, CIDR zline, /oper and CIDR <connect> tags. NOTE: With CIDR oper...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4732 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-061-0/+7
* Remove match/wildcmp wrapper which just casts from const char* to char*, do t...•••Remove other casts by casting directly to unsigned char* first time around git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4607 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-311-15/+7
* Our optimizations missed a possibility :p•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3166 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-111-1/+1
* Fixed two unneccessary strlcpy's in the wildcard matching that just were ther...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3100 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-051-8/+5
* Updated copyrights in headers etc using perl inplace edit•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-151-1/+1
* Changed to use __single_client_alloc, faster on most systems in a single thread•••Specified namespace std in *all* files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1404 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-05-151-0/+2
* Moved a ton of functions into helperfuncs.h to speed up recompiles•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1383 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-05-151-0/+1
* Added faster wildcard checking routines•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1213 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-04-271-82/+57
* Optimized stuff•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1212 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-04-271-3/+5
* Added getrlimit/setrlimit to set process limits to allow a core dump•••Removed some logging from wildcard.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1040 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-04-111-2/+0
* Fixed matching•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1022 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-04-091-0/+11
* Added implementation of strlcpy and strlcat for systems that dont have it•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@905 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-03-251-0/+1
* Security audit based on RATS output•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@855 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2004-09-111-8/+8
* Updated header comments•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@816 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2004-05-161-0/+16