Roger Dingledine
|
037fba7595
util.c needs ctype.h for tolower and isspace
|
20 years ago |
Nick Mathewson
|
ce79bab7f1
Split util into util (general utilities), container (smartlist and strmap), and compat (cross-platform compatability).
|
20 years ago |
Roger Dingledine
|
4689243242
make sure options.MaxConn can be reached
|
20 years ago |
Nick Mathewson
|
5bc0dba933
Move all util functions that need openssl into crypto.c; make non-openssl functions that util needs into util. Now openssl can be separated.
|
20 years ago |
Nick Mathewson
|
6874c39904
Fix windows build
|
20 years ago |
Nick Mathewson
|
6980929e64
Use strlcpy, not strcpy.
|
20 years ago |
Nick Mathewson
|
44d4516155
Use tor_snprintf, not snprintf
|
20 years ago |
Nick Mathewson
|
22dc19b590
snprintf wrapper with consistant (though not C99) overflow behavior
|
20 years ago |
Nick Mathewson
|
f67f83b1fa
Use strlcpy, not strncpy
|
20 years ago |
Nick Mathewson
|
bc62f8e983
Replace sprintf with snprintf
|
20 years ago |
Nick Mathewson
|
26f3cb8652
Add SysLog option to direct log messages to the system log instead of a FILE*.
|
20 years ago |
Roger Dingledine
|
e9e9a25881
i take back everything i've said about unit tests
|
20 years ago |
Roger Dingledine
|
6d873e5743
don't assert multiple things in the same tor_assert()
|
20 years ago |
Nick Mathewson
|
47dc024f7e
Change interface of parse_addr_port() to return address in host order, since most users seem to want that.
|
20 years ago |
Nick Mathewson
|
69d7b468b4
Refactor parse-addr-mask-and-port-range into a separate function
|
20 years ago |
Nick Mathewson
|
2fb08fe46c
add documentation for smartlist_join_strings
|
20 years ago |
Nick Mathewson
|
c5964d6738
Basic string-join functionality
|
20 years ago |
Roger Dingledine
|
5f4a390b33
oh, and some more in common/
|
20 years ago |
Roger Dingledine
|
a7d858bd6e
start the great migration from int to size_t
|
20 years ago |
Nick Mathewson
|
19da1f36c2
Make a bounds-checking replacement for strtol with slightly easier error-checking in the common case
|
20 years ago |
Nick Mathewson
|
e7241044e8
Better bounds checking on parsed ints
|
20 years ago |
Nick Mathewson
|
a91fc48b39
Note byte-order on result for parse_addr_port()
|
20 years ago |
Nick Mathewson
|
8b037509f3
Add functions to parse addr[:port] consistently
|
20 years ago |
Roger Dingledine
|
2bcd0f34f5
fix compile error: move variable declarations before code
|
20 years ago |
Nick Mathewson
|
6c970aec94
Turn tor_strpartion into a swiss-army-knife function, so it can terminate or not-terminate appropriately.
|
20 years ago |
Nick Mathewson
|
7b98fb58eb
More complete docs for crypto.c; factor out string partitioning code
|
20 years ago |
Nick Mathewson
|
b56bb39ed6
Add a function to remove a set of characters from a string
|
20 years ago |
Roger Dingledine
|
1e3b9e7d31
make the warn message better for reading short files
|
20 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.
|
20 years ago |
Roger Dingledine
|
8954cd91ce
LOG_ERR is for when we're going to exit
|
20 years ago |