aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
Commit message (Collapse)AuthorAge
* Remove assert in sort-of c-itical pathNick Mathewson2005-10-18
| | | | svn:r5267
* Reorganize some quick-and-dirty code to find out what openssl stuff is ↵Nick Mathewson2005-10-03
| | | | | | leaking, using dmalloc. svn:r5178
* even better function start checks; give dmalloc a chance of working.Nick Mathewson2005-09-30
| | | | svn:r5162
* Reformat inconsistent function declarations.Nick Mathewson2005-09-30
| | | | svn:r5160
* Add a bunch more warnings to out warning suite; resolve them; pack structs a ↵Nick Mathewson2005-09-29
| | | | | | little better. svn:r5150
* Two new functions like write_bytes_to_file: one takes a list of byte-and-len ↵Nick Mathewson2005-09-13
| | | | | | structs; one appends. svn:r5024
* Fix segfault in win32 unittests.Nick Mathewson2005-09-10
| | | | svn:r4983
* Add missing arg to windows tor_listdir()Nick Mathewson2005-09-09
| | | | svn:r4972
* Implement tor_listdir on windows. Untested.Nick Mathewson2005-09-09
| | | | svn:r4971
* add strupper functionNick Mathewson2005-09-08
| | | | svn:r4934
* Add directory listing functions to util.[ch]. Watch the features creep!Nick Mathewson2005-09-03
| | | | svn:r4906
* put quotes around user-supplied strings so they are more likely toRoger Dingledine2005-08-26
| | | | | | | realize if they add bad characters (like quotes) to the torrc svn:r4844
* add a tor_dup_addr() function to simplify malloc()+tor_inet_ntoa()Roger Dingledine2005-08-26
| | | | svn:r4838
* Make GCC very happy, even with lots of warnings set. Also, try to fix some ↵Nick Mathewson2005-08-12
| | | | | | reported Solaris x86 warnings. svn:r4770
* parse_addr_port was vague about what to do when port_out was NULL. Make it ↵Nick Mathewson2005-08-05
| | | | | | behave usefully. svn:r4716
* Fix windows warningNick Mathewson2005-08-04
| | | | svn:r4697
* Make clients regenerate their keys when their IP address changes.Nick Mathewson2005-08-03
| | | | svn:r4688
* Fix an fd leak in start_daemonNick Mathewson2005-06-30
| | | | svn:r4508
* flesh out the source file descriptions for doxygenRoger Dingledine2005-06-11
| | | | svn:r4404
* Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson2005-06-09
| | | | svn:r4382
* bugfix: chdir to your datadirectory at the *end* of theRoger Dingledine2005-04-06
| | | | | | | | | | daemonize process, not the beginning. this was a problem because the first time you run tor, if your datadir isn't there, and you have runasdaemon set to 1, it will try to chdir to it before it tries to create it. oops. svn:r4033
* update copyright notices.Nick Mathewson2005-04-01
| | | | svn:r3982
* Commit fixes for several pending tor core tasks: document all DOCDOCed ↵Nick Mathewson2005-03-17
| | | | | | functions; time out uncontrolled unattached streams; feed reasons to SOCKS5 (refactoring connection_ap_handshake_socks_reply in the process); change DirFetchPeriod/StatusFetchPeriod to have a special "Be smart" value. svn:r3769
* Fix a fun windows bug: apparently windows stat wants paths not to end with ↵Nick Mathewson2005-03-16
| | | | | | slash. svn:r3766
* Implement more control spec functionalityNick Mathewson2005-02-25
| | | | | | | | | | | | | | | | | | - Mapaddress - Postdescriptor - GetInfo on descriptors Required changes elsewhere: - Keep the most recent running_routers_t in the routerlist_t. That way we can learn about new routers and remember whether we were last told that they were up or down. Also enables more simplifications. - Keep the signed descriptor inside routerinfo_t. This makes descriptor_entry_t in dirservers.c unneeded. - Rename AddressMap (the verb) to MapAddress. Keep AddressMap as a noun. - Check addresses for plausibility before mapping them. svn:r3696
* Change from inet_ntoa to a threadproof tor_inet_ntoa.Nick Mathewson2005-02-22
| | | | svn:r3656
* Note a non-bug in read_file_to_str as used. If we start to rely on it ↵Nick Mathewson2005-02-22
| | | | | | behaving differently, we need to change how it behaves. [Noticed by Chris Palmer] svn:r3655
* Patch to localtime/gmtime handling: use the _r variants where available. ↵Nick Mathewson2005-02-22
| | | | | | Use mutexes to fake _r where necessary. Make mutexes no-ops where no threading is enabled. svn:r3653
* Remove assumptions that maximum path length is anything like 1024. From ↵Nick Mathewson2005-02-22
| | | | | | comments by Chris Palmer svn:r3652
* point out a potential thread/process leak problem when we're out of memoryRoger Dingledine2005-02-03
| | | | svn:r3512
* Add --with-dmalloc configure optionPeter Palfrader2005-02-03
| | | | svn:r3508
* help avoid overflow from len_in + (len_in/n)*len_insRoger Dingledine2005-01-10
| | | | | | | nick, do you think this does it? if so, we should maybe backport too. svn:r3334
* move network_init from or/main to common/compatRoger Dingledine2004-12-22
| | | | | | | | call network_init in tor-resolve.c too move tor_lookup_hostname from common/util to common/compat svn:r3203
* Solaris CC freaks out if isspace and friends get anything other than an int. ↵Nick Mathewson2004-12-08
| | | | | | We learned that, so we casted. But it is also a bad idea to cast a signed char to an int and expect things to work on win32. Now we cast to unsigned char, then to int, then pass to isspace. Ug svn:r3120
* Fix parse_iso_time on platforms without strptime.Nick Mathewson2004-12-06
| | | | svn:r3091
* Be more proactive about noticing underflows: size_t values greater than ↵Nick Mathewson2004-12-02
| | | | | | 0x800...00 are likely to be trouble. svn:r3064
* Spell-check strings and commentsNick Mathewson2004-12-01
| | | | svn:r3052
* a few minor tweaksRoger Dingledine2004-11-30
| | | | svn:r3041
* Add casei versions of strcmpstart/strcmpendNick Mathewson2004-11-30
| | | | svn:r3026
* Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson2004-11-29
| | | | | | every file. svn:r3019
* wrong is ok, and right is fine, but in between is apparentlyRoger Dingledine2004-11-28
| | | | | | | totally unacceptable to me. svn:r3005
* correct multiple internal spacesNick Mathewson2004-11-28
| | | | svn:r3004
* Normalize space: add one between every control keyword and control clause.Nick Mathewson2004-11-28
| | | | svn:r3003
* remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine2004-11-26
| | | | svn:r2989
* Clean up some logging and interfacesNick Mathewson2004-11-23
| | | | svn:r2945
* Normalize a few more kinds of whitespace. We now dislike:Nick Mathewson2004-11-22
| | | | | | | | | - func (args) - if (x){ This doesn't normalize if(x), for(x); while(x), and friends. svn:r2943
* Add function to format local time in ISO formatNick Mathewson2004-11-22
| | | | svn:r2935
* Fix a fun bug in read_all that was corrupting config files on windows, and ↵Nick Mathewson2004-11-16
| | | | | | probably doing other bad stuff too. svn:r2898
* Fix argument to strncpy.Nick Mathewson2004-11-12
| | | | svn:r2824
* Speed up tor_strndup a lot: profiling suggests that our use of strlcpy here ↵Nick Mathewson2004-11-12
| | | | | | was a bad idea. svn:r2821