Roger Dingledine
|
9e6d6c6096
Bugfix: we've been using openssl's BIO_get_mem_data incorrectly.
|
21 years ago |
Nick Mathewson
|
8c85c0bef8
Note that length checking on base64_decode is kinda conservative
|
21 years ago |
Nick Mathewson
|
fd4c624677
Belt *or* suspenders will be sufficient when casting things to unsigned char.
|
21 years ago |
Nick Mathewson
|
fe6eb34a10
Solaris CC freaks out if isspace and friends get anything other than an int. 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
|
21 years ago |
Nick Mathewson
|
a980446d0c
Be more proactive about noticing underflows: size_t values greater than 0x800...00 are likely to be trouble.
|
21 years ago |
Nick Mathewson
|
b457cfb5eb
Spell-check strings and comments
|
21 years ago |
Nick Mathewson
|
7fbd297532
Suggestion from weasel: Make tor --version --version dump the cvs Id of every file.
|
21 years ago |
Nick Mathewson
|
6f5dbefa7e
Normalize space: add one between every control keyword and control clause.
|
21 years ago |
Roger Dingledine
|
7c9a707900
remove emacs droppings, since nick says he doesn't need them anymore
|
21 years ago |
Nick Mathewson
|
5a5be93f80
Normalize whitespace; add a "tell me about all the unnormalized whitespace" target; fix a braino in dirserv.c
|
21 years ago |
Nick Mathewson
|
cea9125d71
Implement two flavors of authentication for control connections: one for trusted FS, one for untrusted FS.
|
21 years ago |
Nick Mathewson
|
ad4dc74482
Use a stricter set of warnings; make them all pass.
|
21 years ago |
Roger Dingledine
|
85c79ffbc7
canonicalize "src" and "dest" arg order in crypto.c (and others)
|
21 years ago |
Nick Mathewson
|
ce79bab7f1
Split util into util (general utilities), container (smartlist and strmap), and compat (cross-platform compatability).
|
21 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.
|
21 years ago |
Nick Mathewson
|
2fbf31533b
Tricksy compiler warnings! We hates them, hates them forever, my precious!
|
21 years ago |
Nick Mathewson
|
ce5709184b
Pass with -Wstrict-prototypes
|
21 years ago |
Nick Mathewson
|
f67f83b1fa
Use strlcpy, not strncpy
|
21 years ago |
Roger Dingledine
|
6d873e5743
don't assert multiple things in the same tor_assert()
|
21 years ago |
Nick Mathewson
|
a42adce362
fix memory leak in router.c; start relying on NULL==(zero bytes)
|
21 years ago |
Roger Dingledine
|
918ce7a084
a few more ints to size_ts
|
21 years ago |
Roger Dingledine
|
a7d858bd6e
start the great migration from int to size_t
|
21 years ago |
Roger Dingledine
|
1c757b917d
fix signed/unsigned comparison, plus typo
|
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
|
ce3162d035
Make base-64-encoded DER work, including workaround for ugly openssl misfeature that makes base64 decoding fail when you strip out the newlines.
|
21 years ago |
Nick Mathewson
|
8cca36d26a
Implement (temporarily) a base64-encoded-DER format for RSA keys; make it easier to generate fingerprints with no space
|
21 years ago |
Nick Mathewson
|
93f085c4a2
Stop using openssl functions that rely on stdio; they can apparently lead to linker grief on win32.
|
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 |
Roger Dingledine
|
d91cacb839
agree with nick: this legal-chars-in-filename stuff gets us nothing
|
21 years ago |