summaryrefslogtreecommitdiffhomepage
path: root/src/anonymous.c
AgeCommit message (Collapse)Author
2020-09-15replace leftover users of hashmap with htabrofl0r
also fixes a bug where the ErrorFile directive would create a new hashmap on every added item, effectively allowing only the use of the last specified errornumber, and producing memory leaks on each config reload.
2020-03-16anonymous: fix segfault loading config itemrofl0r
unlike other functions called from the config parser code, anonymous_insert() accesses the global config variable rather than passing it as an argument. however the global variable is only set after successful loading of the entire config. we fix this by adding a conf argument to each anonymous_* function, passing the global pointer in calls done from outside the config parser. fixes #292
2020-01-15access config via a pointer, not a hardcoded struct addressrofl0r
this is required so we can elegantly swap out an old config for a new one in the future and remove lots of boilerplate from config initialization code. unfortunately this is a quite intrusive change as the config struct was accessed in numerous places, but frankly it should have been done via a pointer right from the start. right now, we simply point to a static struct in main.c, so there shouldn't be any noticeable changes in behaviour.
2009-12-07Move definition of "struct config_s" from main.h to conf.hMichael Adam
Michael
2009-12-07Add the anonymous_map hasmap to the config struct.Michael Adam
Michael
2009-09-15Indent code to Tinyproxy coding styleMukund Sivaraman
The modified files were indented with GNU indent using the following command: indent -npro -kr -i8 -ts8 -sob -l80 -ss -cs -cp1 -bs -nlps -nprs -pcs \ -saf -sai -saw -sc -cdw -ce -nut -il0 No other changes of any sort were made.
2009-08-07Rename tinyproxy.[ch] to main.[ch]Mukund Sivaraman
2009-08-05add const to the key argument of anonymous_insert().Michael Adam
Michael
2009-08-05add const to the key argument for anonymous_search().Michael Adam
Michael
2008-12-08Convert tabs to spacesMukund Sivaraman
2008-12-01Reformat code to GNU coding styleMukund Sivaraman
This is a commit which simply ran all C source code files through GNU indent. No other modifications were made.
2008-05-24Updated copyright, license notices in source codeMukund Sivaraman
The notices have been changed to a more GNU look. Documentation comments have been separated from the copyright header. I've tried to keep all copyright notices intact. Some author contact details have been updated.
2005-08-15* [Indent] Ran Source Through indentRobert James Kaes
I re-indented the source code using indent with the following options: indent -kr -bad -bap -nut -i8 -l80 -psl -sob -ss -ncs There are now _no_ tabs in the source files, and all indentation is eight spaces. Lines are 80 characters long, and the procedure type is on it's own line. Read the indent manual for more information about what each option means.
2005-07-12* Updated Copyright Email AddressesRobert James Kaes
Updated the copyright email addresses for Robert James Kaes. The users.sourceforge.net address should always exist.
2002-05-23Changed the header includes around to reflect the new source layout.Robert James Kaes
2002-04-25hashmap_search() only takes two arguments, so removed the unneeded NULL.Robert James Kaes
2002-04-16Cleaned up the return values of the two anonymous functions to make theRobert James Kaes
code cleaner and smaller.
2002-04-09Replaced the internally used linked list with a call to the hashmapRobert James Kaes
module. Code reuse is a good thing.
2001-12-15Switched from using the ternary tree to a simple linked list.Robert James Kaes
2001-11-22Reformated text.Robert James Kaes
2001-11-05Made is_anonymous_enabled() an inline function.Robert James Kaes
2001-10-25Header reorganization. Basically all system headers are now included inRobert James Kaes
tinyproxy.h and all the other files include the tinyproxy.h header. This moves all the dependancy issues into one file.
2001-08-26Removed the anon_new() function and moved it's functionality intoRobert James Kaes
anonymous_insert(). Also renamed all the anon_* functions to anonymous_* function.
2001-05-27Updated the return type for new_anonymous().Robert James Kaes
2001-05-23Added ASSERT statements.Robert James Kaes
2000-10-23Added the new_anonymous initialize routineRobert James Kaes
2000-09-11Removed the ternary tree code from these files and made it a separateRobert James Kaes
module.
2000-03-31Moved the anonymous header code into it's own file to make it easier toRobert James Kaes
update.