Nick Mathewson
|
6899b8001a
|
Check for low _MSC_VER, not high. On windows, always use winsock.
svn:r2575
|
2004-10-20 23:30:38 +00:00 |
|
Roger Dingledine
|
c4c6ee7d61
|
add winsock if you've got it, regardless of whether you're msv
svn:r2573
|
2004-10-20 23:23:53 +00:00 |
|
Nick Mathewson
|
62094ebd32
|
Tolerate NULL nicknames better
svn:r2567
|
2004-10-19 18:17:12 +00:00 |
|
Roger Dingledine
|
e9e9a25881
|
i take back everything i've said about unit tests
svn:r2547
|
2004-10-16 22:56:03 +00:00 |
|
Roger Dingledine
|
6d873e5743
|
don't assert multiple things in the same tor_assert()
svn:r2545
|
2004-10-16 22:28:11 +00:00 |
|
Nick Mathewson
|
47dc024f7e
|
Change interface of parse_addr_port() to return address in host order, since most users seem to want that.
svn:r2542
|
2004-10-16 21:53:30 +00:00 |
|
Nick Mathewson
|
69d7b468b4
|
Refactor parse-addr-mask-and-port-range into a separate function
svn:r2540
|
2004-10-16 21:41:12 +00:00 |
|
Nick Mathewson
|
a42adce362
|
fix memory leak in router.c; start relying on NULL==(zero bytes)
svn:r2538
|
2004-10-16 20:38:57 +00:00 |
|
Nick Mathewson
|
f619c4603e
|
Add an autoconf test to make sure that memset(&ptr, 0, sizeof(ptr)) and ptr=NULL are equivalent
svn:r2536
|
2004-10-16 20:26:12 +00:00 |
|
Nick Mathewson
|
f359389866
|
Oops; make sure that break; and continue; work within SMARTLIST_FOREACH
svn:r2532
|
2004-10-15 20:49:31 +00:00 |
|
Nick Mathewson
|
5e80944c52
|
Use token-pasting magic to make nested SMARTLIST_FOREACH work.
svn:r2526
|
2004-10-15 04:45:47 +00:00 |
|
Nick Mathewson
|
2fb08fe46c
|
add documentation for smartlist_join_strings
svn:r2524
|
2004-10-15 03:55:02 +00:00 |
|
Nick Mathewson
|
c5964d6738
|
Basic string-join functionality
svn:r2521
|
2004-10-14 19:51:47 +00:00 |
|
Nick Mathewson
|
100b10473a
|
fix tab/space in torgzip.h
svn:r2493
|
2004-10-14 04:31:16 +00:00 |
|
Nick Mathewson
|
a4ef916b8e
|
fix tab/space in torgzip.c
svn:r2492
|
2004-10-14 04:24:42 +00:00 |
|
Nick Mathewson
|
1c9426d6e0
|
Build without warnings on mac gcc 3.3
svn:r2487
|
2004-10-14 03:18:14 +00:00 |
|
Roger Dingledine
|
69830afc16
|
and another one
svn:r2484
|
2004-10-14 02:49:48 +00:00 |
|
Roger Dingledine
|
5f4a390b33
|
oh, and some more in common/
svn:r2483
|
2004-10-14 02:48:57 +00:00 |
|
Roger Dingledine
|
918ce7a084
|
a few more ints to size_ts
svn:r2461
|
2004-10-13 05:54:58 +00:00 |
|
Roger Dingledine
|
fe54bd00b9
|
ok, vim isn't the greatest editor in the world
svn:r2457
|
2004-10-12 20:28:53 +00:00 |
|
Roger Dingledine
|
a7d858bd6e
|
start the great migration from int to size_t
and clean some deadweight from util.h
svn:r2455
|
2004-10-12 20:20:19 +00:00 |
|
Nick Mathewson
|
19da1f36c2
|
Make a bounds-checking replacement for strtol with slightly easier error-checking in the common case
svn:r2452
|
2004-10-12 19:32:41 +00:00 |
|
Roger Dingledine
|
1c757b917d
|
fix signed/unsigned comparison, plus typo
svn:r2451
|
2004-10-12 19:09:40 +00:00 |
|
Nick Mathewson
|
e7241044e8
|
Better bounds checking on parsed ints
svn:r2450
|
2004-10-12 19:01:53 +00:00 |
|
Nick Mathewson
|
a91fc48b39
|
Note byte-order on result for parse_addr_port()
svn:r2444
|
2004-10-12 16:02:15 +00:00 |
|
Nick Mathewson
|
8b037509f3
|
Add functions to parse addr[:port] consistently
svn:r2440
|
2004-10-12 15:48:30 +00:00 |
|
Roger Dingledine
|
2bcd0f34f5
|
fix compile error: move variable declarations before code
svn:r2430
|
2004-10-08 05:43:28 +00:00 |
|
Nick Mathewson
|
6c970aec94
|
Turn tor_strpartion into a swiss-army-knife function, so it can terminate or not-terminate appropriately.
svn:r2429
|
2004-10-07 21:37:06 +00:00 |
|
Nick Mathewson
|
7b98fb58eb
|
More complete docs for crypto.c; factor out string partitioning code
svn:r2427
|
2004-10-07 20:58:53 +00:00 |
|
Nick Mathewson
|
ce3162d035
|
Make base-64-encoded DER work, including workaround for ugly openssl misfeature that makes base64 decoding fail when you strip out the newlines.
svn:r2423
|
2004-10-07 03:11:42 +00:00 |
|
Nick Mathewson
|
b56bb39ed6
|
Add a function to remove a set of characters from a string
svn:r2420
|
2004-10-06 13:26:37 +00:00 |
|
Nick Mathewson
|
8cca36d26a
|
Implement (temporarily) a base64-encoded-DER format for RSA keys; make it easier to generate fingerprints with no space
svn:r2419
|
2004-10-06 13:26:10 +00:00 |
|
Roger Dingledine
|
1e3b9e7d31
|
make the warn message better for reading short files
svn:r2385
|
2004-09-28 08:40:03 +00:00 |
|
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.
svn:r2375
|
2004-09-26 16:51:31 +00:00 |
|
Roger Dingledine
|
8385fdb590
|
make our tor_assert actually work when it's going to be triggered,
rather than seg fault
svn:r2368
|
2004-09-23 05:02:51 +00:00 |
|
Roger Dingledine
|
a1979800ab
|
bugfix on the bugfix
actually unlink the log entry.
ok, that wasn't cleverly hidden enough. let's try again.
svn:r2367
|
2004-09-23 04:59:02 +00:00 |
|
Roger Dingledine
|
f753f6f0e2
|
bugfix: when we run out of disk space, or other log writing error,
don't crash. just stop logging to that log and continue.
nick, can you find the bug i've cleverly hidden in this commit?
svn:r2365
|
2004-09-23 03:51:45 +00:00 |
|
Nick Mathewson
|
93f085c4a2
|
Stop using openssl functions that rely on stdio; they can apparently lead to linker grief on win32.
svn:r2354
|
2004-09-21 04:55:43 +00:00 |
|
Roger Dingledine
|
8954cd91ce
|
LOG_ERR is for when we're going to exit
svn:r2348
|
2004-09-10 21:39:53 +00:00 |
|
Nick Mathewson
|
0ef85f6dba
|
Some platforms have weird translations when you open files in "test" mode; make read/write_str_to_file aware.
svn:r2336
|
2004-09-08 07:16:34 +00:00 |
|
Nick Mathewson
|
b6798866d0
|
Idiot-proof uncompress; make sure it always nul-terminates its output. Also, make all compression methods nonzero.
svn:r2334
|
2004-09-08 06:47:33 +00:00 |
|
Nick Mathewson
|
f311206d1d
|
Make split function smarter; add a strcmpstart function so we can stop bungling strcmp(x, y, strlen(y));
svn:r2325
|
2004-09-02 18:25:50 +00:00 |
|
Nick Mathewson
|
3590eb535a
|
Add basic wrappers for zlib/gzip
svn:r2324
|
2004-09-02 18:22:51 +00:00 |
|
Nick Mathewson
|
31b81650b7
|
Define LONG_MAX and UINT_MAX when they are missing
svn:r2317
|
2004-08-25 19:16:18 +00:00 |
|
Roger Dingledine
|
f91c552af7
|
fix a seg fault on solaris
svn:r2313
|
2004-08-25 17:37:00 +00:00 |
|
Roger Dingledine
|
444a01610c
|
make the compile work (and not complain) on sunos 5.9
svn:r2312
|
2004-08-25 17:31:47 +00:00 |
|
Roger Dingledine
|
d91cacb839
|
agree with nick: this legal-chars-in-filename stuff gets us nothing
svn:r2310
|
2004-08-24 21:57:12 +00:00 |
|
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.
svn:r2309
|
2004-08-24 20:48:22 +00:00 |
|
Nick Mathewson
|
7979c0277d
|
Workaround for oddity in cygwin autoconf
svn:r2301
|
2004-08-19 17:21:17 +00:00 |
|
Roger Dingledine
|
7304ac1d6f
|
tweak the [...truncated] string again
svn:r2289
|
2004-08-18 11:21:50 +00:00 |
|