Commit History

Author SHA1 Message Date
  Nick Mathewson e7241044e8 Better bounds checking on parsed ints 21 years ago
  Nick Mathewson a91fc48b39 Note byte-order on result for parse_addr_port() 21 years ago
  Nick Mathewson 8b037509f3 Add functions to parse addr[:port] consistently 21 years ago
  Roger Dingledine 2bcd0f34f5 fix compile error: move variable declarations before code 21 years ago
  Nick Mathewson 6c970aec94 Turn tor_strpartion into a swiss-army-knife function, so it can terminate or not-terminate appropriately. 21 years ago
  Nick Mathewson 7b98fb58eb More complete docs for crypto.c; factor out string partitioning code 21 years ago
  Nick Mathewson b56bb39ed6 Add a function to remove a set of characters from a string 21 years ago
  Roger Dingledine 1e3b9e7d31 make the warn message better for reading short files 21 years ago
  Nick Mathewson 09586ef712 Make read_all distinguish between error and EOF; read_file_to_string should only check bytes read against st_size when in binary mode. 21 years ago
  Roger Dingledine 8954cd91ce LOG_ERR is for when we're going to exit 21 years ago
  Nick Mathewson 0ef85f6dba Some platforms have weird translations when you open files in "test" mode; make read/write_str_to_file aware. 21 years ago
  Nick Mathewson f311206d1d Make split function smarter; add a strcmpstart function so we can stop bungling strcmp(x, y, strlen(y)); 21 years ago
  Nick Mathewson 31b81650b7 Define LONG_MAX and UINT_MAX when they are missing 21 years ago
  Roger Dingledine 444a01610c make the compile work (and not complain) on sunos 5.9 21 years ago
  Roger Dingledine d91cacb839 agree with nick: this legal-chars-in-filename stuff gets us nothing 21 years ago
  Nick Mathewson 015232bd39 As far as I can tell, CONFIG_LEGAL_FILENAME_CHARACTERS is both pointless and broken. #if it out, pending agreement from arma. This fixes a bug on win32 that rejected paths with a : in them. 21 years ago
  Nick Mathewson 7cb93e5bb6 Move string-splitting into a separate function 21 years ago
  Nick Mathewson 8566bbb489 Add strmap_isempty 21 years ago
  Nick Mathewson 15a903b21c Convenience function to do a strcmp on each member of a smartlist of strings 21 years ago
  Nick Mathewson 6453a25567 Add replace_file to util.[ch] to survive stupidity of windows rename call 21 years ago
  Nick Mathewson f6cc218742 Refactor ISO-style (yyyy-mm-dd hh:mm:ss) time parsing into util.c; rename format/parse_rfc1123_time; make rephist remember used bandwidth; published used bandwidth in descriptors in 15-minute chunks. Breaks unittests. 21 years ago
  Nick Mathewson 2091dab7f4 fencepost 21 years ago
  Nick Mathewson 380f32f07d hex_encode is obsoleted by base16_encode, and never actually worked in the first place. (Thanks to Timo Lindfors for noticing the never-actually-worked part.) 21 years ago
  Nick Mathewson 14d5478f29 Add functions to format and parse RFC1123-style times, for HTTP protocol. 21 years ago
  Nick Mathewson 5b61dd0457 Fix all warnings on win32 build 21 years ago
  Nick Mathewson 849e998ac6 It is possible to have struct timeval but not gettimeofday. 21 years ago
  Roger Dingledine 5525606653 check return value of fclose while writing to disk, since it might 21 years ago
  Roger Dingledine 7459d067a5 now base16_encode() and base32_encode() can't ever fail 21 years ago
  Nick Mathewson 06c11a61ce When faking gettimeofday with ftime, do it right. 21 years ago
  Nick Mathewson bc36db351f Resolve all DOCDOCs. 21 years ago