Nick Mathewson
|
9bc2467626
|
Okay, try to use RAND_poll() from OpenSSL where available.
svn:r5229
|
2005-10-08 05:47:15 +00:00 |
|
Roger Dingledine
|
c4757e0705
|
LOG_ERR is for when we know we're going to exit. use LOG_WARN in other
cases.
svn:r5220
|
2005-10-07 19:53:57 +00:00 |
|
Nick Mathewson
|
010bcfa9df
|
Win32 compilation/correctness fixes.
svn:r5218
|
2005-10-07 19:33:47 +00:00 |
|
Nick Mathewson
|
150e5ac098
|
disable RAND_poll() for the alpha of the day; at least 24 hours of testing is in order for something like that.
svn:r5216
|
2005-10-07 19:17:20 +00:00 |
|
Nick Mathewson
|
a53ecc94f9
|
Add half our entropy from RAND_poll in OpenSSL. These know how to use egd (if present) openbsd weirdness (if present), vms/os2 weirdness (if we ever port there), and more in the future.
svn:r5215
|
2005-10-07 19:03:09 +00:00 |
|
Nick Mathewson
|
a89daaeca9
|
Once an hour (not just on startup) give OpenSSL some more entropy.
Add entropy in 512-bit chunks, not 160-bit chunks. (This latter
change is voodoo.)
svn:r5211
|
2005-10-06 22:22:22 +00:00 |
|
Nick Mathewson
|
cc35e1720f
|
Using RAND_pseudo_bytes instead of RAND_bytes is an accident waiting to happen, and does not really speed us up much when we do it. So stop doing it.
svn:r5210
|
2005-10-06 22:18:01 +00:00 |
|
Nick Mathewson
|
ba24193ab5
|
Make doxygen marginally happier
svn:r5208
|
2005-10-06 04:33:40 +00:00 |
|
Nick Mathewson
|
92abf1b653
|
Make windows platform detection smarter. {Untested.}
svn:r5198
|
2005-10-05 22:04:45 +00:00 |
|
Nick Mathewson
|
f8c07e1f33
|
free EVP cipher information on shutdown to remove some spurious dmalloc complaints.
svn:r5180
|
2005-10-03 21:10:35 +00:00 |
|
Nick Mathewson
|
fd04db90b5
|
Stop leaking storage for EVP keys. (This would be a critical bug if it had ever appeared in a released version.)
svn:r5179
|
2005-10-03 20:53:27 +00:00 |
|
Nick Mathewson
|
c5ee3e961e
|
Reorganize some quick-and-dirty code to find out what openssl stuff is leaking, using dmalloc.
svn:r5178
|
2005-10-03 20:20:38 +00:00 |
|
Nick Mathewson
|
de198d800b
|
Never call free() on tor_malloc()d memory. This is unlikely to be our current leak, but it may help dmalloc work.
svn:r5168
|
2005-09-30 20:47:58 +00:00 |
|
Nick Mathewson
|
26e7a05725
|
even better function start checks; give dmalloc a chance of working.
svn:r5162
|
2005-09-30 01:39:24 +00:00 |
|
Nick Mathewson
|
92451f74a8
|
Reformat inconsistent function declarations.
svn:r5160
|
2005-09-30 01:09:52 +00:00 |
|
Nick Mathewson
|
5c53545d81
|
Add a bunch more warnings to out warning suite; resolve them; pack structs a little better.
svn:r5150
|
2005-09-29 22:59:17 +00:00 |
|
Nick Mathewson
|
2999cbf233
|
Use EVP_CIPHER_CTX version of AES from openssl, so openssl can use engines (if they exist).
svn:r5146
|
2005-09-27 19:39:25 +00:00 |
|
Nick Mathewson
|
0873386600
|
Point readers of the code to opensslv.h, since everybody who sees 0x0090700f looks at me like some kind of loon
svn:r5140
|
2005-09-24 16:39:33 +00:00 |
|
Nick Mathewson
|
d661fde082
|
Possible fix to make aes build on woody
svn:r5139
|
2005-09-24 16:37:24 +00:00 |
|
Nick Mathewson
|
96988b45b4
|
Use OpenSSL AES when OpenSSL has version 0.9.7 or later.
svn:r5129
|
2005-09-23 18:50:50 +00:00 |
|
Nick Mathewson
|
f8a80e8d59
|
Helper functions to perform our truncated base64 encoding on hexdigests.
svn:r5087
|
2005-09-18 02:18:59 +00:00 |
|
Nick Mathewson
|
312af36126
|
Make smartlist_add_all more efficient.
svn:r5086
|
2005-09-18 02:17:02 +00:00 |
|
Nick Mathewson
|
6973ef9be4
|
Add a touch_file() function to compat so we can update cache mtimes.
svn:r5067
|
2005-09-14 23:27:52 +00:00 |
|
Nick Mathewson
|
922cee3d0c
|
Clean up a few warnings that make gcc twig out a bit.
svn:r5062
|
2005-09-14 20:59:25 +00:00 |
|
Nick Mathewson
|
d9bf9e48c0
|
Add documentation to a few functions in container.c; reformat function definitions
svn:r5026
|
2005-09-13 15:30:22 +00:00 |
|
Nick Mathewson
|
d4fb1fcd6c
|
Two new functions like write_bytes_to_file: one takes a list of byte-and-len structs; one appends.
svn:r5024
|
2005-09-13 06:19:31 +00:00 |
|
Nick Mathewson
|
c1a6940e73
|
make compile slightly happier on const-zealous compilers
svn:r5015
|
2005-09-12 08:29:53 +00:00 |
|
Nick Mathewson
|
2689cb081b
|
We have so many special cases for smartlists of strings, why not add a sort function?
svn:r5014
|
2005-09-12 08:27:01 +00:00 |
|
Nick Mathewson
|
8d70ae01b8
|
Fix a memory leak in smartlist_string_remove.
svn:r5002
|
2005-09-12 05:20:29 +00:00 |
|
Nick Mathewson
|
24bfac635d
|
Document SMARTLIST_FOREACH macro, along with previously-naughty foo_sl_idx variable.
svn:r5000
|
2005-09-11 23:14:14 +00:00 |
|
Nick Mathewson
|
a4f32e77ef
|
Fix segfault in win32 unittests.
svn:r4983
|
2005-09-10 02:34:32 +00:00 |
|
Nick Mathewson
|
d26523e089
|
Use tor_listdir in test.c instead of duplicating ode.
svn:r4981
|
2005-09-10 01:42:42 +00:00 |
|
Nick Mathewson
|
035b1953eb
|
Add sorting/searching to smartlist
svn:r4977
|
2005-09-09 23:12:54 +00:00 |
|
Nick Mathewson
|
6b479b3cfa
|
Only do openssl accel stuff if version is at least 0.9.7
svn:r4973
|
2005-09-09 22:07:15 +00:00 |
|
Nick Mathewson
|
09d83c564b
|
Add missing arg to windows tor_listdir()
svn:r4972
|
2005-09-09 21:34:59 +00:00 |
|
Nick Mathewson
|
2f6eb10fb4
|
Implement tor_listdir on windows. Untested.
svn:r4971
|
2005-09-09 21:29:23 +00:00 |
|
Nick Mathewson
|
c4b3bf06c6
|
add strupper function
svn:r4934
|
2005-09-08 18:33:51 +00:00 |
|
Roger Dingledine
|
780261aa2e
|
don't crash now that LongLivedPorts can be null
svn:r4923
|
2005-09-08 06:47:27 +00:00 |
|
Nick Mathewson
|
b6a13b6cdf
|
Add directory listing functions to util.[ch]. Watch the features creep!
svn:r4906
|
2005-09-03 04:40:05 +00:00 |
|
Nick Mathewson
|
29a6c17d67
|
Allow tor_gzip_uncompress to handle multiple concatenated compressed strings.
svn:r4882
|
2005-08-29 18:01:38 +00:00 |
|
Roger Dingledine
|
fa507c63e8
|
put quotes around user-supplied strings so they are more likely to
realize if they add bad characters (like quotes) to the torrc
svn:r4844
|
2005-08-26 18:40:44 +00:00 |
|
Roger Dingledine
|
d5e426ab51
|
add a tor_dup_addr() function to simplify malloc()+tor_inet_ntoa()
svn:r4838
|
2005-08-26 07:37:07 +00:00 |
|
Nick Mathewson
|
9321db8c29
|
Fix bug with tor_memmem finding a match at the end of the string.
svn:r4803
|
2005-08-22 00:34:23 +00:00 |
|
Roger Dingledine
|
121ea4dd93
|
a url for better reference
svn:r4778
|
2005-08-15 01:03:50 +00:00 |
|
Nick Mathewson
|
d1c094637d
|
Try to resolve another reported solaris x86 warning
svn:r4771
|
2005-08-12 17:26:43 +00:00 |
|
Nick Mathewson
|
789374dbbd
|
Make GCC very happy, even with lots of warnings set. Also, try to fix some reported Solaris x86 warnings.
svn:r4770
|
2005-08-12 17:24:53 +00:00 |
|
Nick Mathewson
|
943ef5256b
|
fix whitespace issues
svn:r4752
|
2005-08-08 21:59:48 +00:00 |
|
Roger Dingledine
|
f4eec180a2
|
disarm a trap that's lying in wait for us
svn:r4741
|
2005-08-08 17:31:57 +00:00 |
|
Nick Mathewson
|
9345323b18
|
far far cleaner implementation of handshake checking logic. Backport candidate.
svn:r4736
|
2005-08-07 20:36:14 +00:00 |
|
Roger Dingledine
|
bfe65db284
|
ok, so now it was just redundant. nick, do you recall what rfc
you were trying to point to?
svn:r4727
|
2005-08-07 17:11:33 +00:00 |
|