Roger Dingledine
afa7f92abb
a few todo things done
...
svn:r482
2003-09-24 21:30:12 +00:00
Roger Dingledine
055215c038
cleanups, bugfixes, more verbose logs
...
Fixed up the assert_*_ok funcs some (more work remains)
Changed config so it reads either /etc/torrc or the -f arg, never both
Finally tracked down a nasty bug with our use of tls:
It turns out that if you ask SSL_read() for no more than n bytes, it
will read the entire record from the network (and maybe part of the next
record, I'm not sure), give you n bytes of it, and keep the remaining
bytes internally. This is fine, except our poll-for-read looks at the
network, and there are no bytes pending on the network, so we never know
to ask SSL_read() for more bytes. Currently I've hacked it so if we ask
for n bytes and it returns n bytes, then it reads again right then. This
will interact poorly with our rate limiting; we need a cleaner solution.
svn:r481
2003-09-24 21:24:52 +00:00
Roger Dingledine
02f21861cc
bugfix: we weren't looking for sys/stat.h
...
svn:r480
2003-09-23 20:04:28 +00:00
Roger Dingledine
61cf1ce141
integrate assert_connection_ok() checks
...
svn:r479
2003-09-23 19:47:41 +00:00
Roger Dingledine
917ff439d9
call it tor, not or
...
svn:r478
2003-09-22 06:22:08 +00:00
Roger Dingledine
67fb743a4d
it's safe to do parallel directory fetches/uploads
...
svn:r477
2003-09-22 06:22:00 +00:00
Roger Dingledine
21fff22175
get network/host order working right again for socks4
...
svn:r476
2003-09-21 06:44:53 +00:00
Roger Dingledine
095322873c
bugfixes and note missing features
...
deal with content-length headers better when reading http
don't assume struct socks4_info is a packed struct
fail the socks handshake if destip is zero
flesh out conn_state_to_string() for dir conn
fix typo (bug) in connection_handle_read()
directory get is now called fetch, post is now upload
reopen logs on sighup
svn:r475
2003-09-21 06:15:43 +00:00
Roger Dingledine
1a1a4850e1
add a lot of todo entries, from today's meeting
...
svn:r474
2003-09-20 06:56:15 +00:00
Roger Dingledine
594a45ef9e
fix a segfault on truncated log lines
...
svn:r473
2003-09-19 09:30:34 +00:00
Roger Dingledine
291c669bcd
leave the socks handshake on the inbuf until it's complete
...
this paves the way for supporting socks5 and other handshakes
it also removes those pesky AP-only variables from connection_t
also hacked a fix for a bug where some streams weren't ending properly --
maybe because marked connections weren't flushing properly?
svn:r472
2003-09-18 08:11:31 +00:00
Roger Dingledine
88896dbfe0
add in directory 'post' support
...
svn:r471
2003-09-17 20:09:06 +00:00
Roger Dingledine
ff9e34004f
phase out non-tls handshake, now that tls is stable.
...
svn:r470
2003-09-16 21:20:09 +00:00
(no author)
31aa9a8b34
This commit was manufactured by cvs2svn to create tag
...
'tor-0_0_2pre8'.
svn:r469
2003-09-16 20:57:09 +00:00
Roger Dingledine
fa9ca3e688
bugfixes and refactorings
...
svn:r468
2003-09-16 20:57:09 +00:00
Nick Mathewson
9d5befd929
More fine-grained logging messages on ZeroReturn/Syscall error cases
...
svn:r467
2003-09-16 20:53:09 +00:00
Nick Mathewson
24428575ea
Make sequential ACI selection logic handle HIGHER/LOWER
...
svn:r466
2003-09-16 20:13:43 +00:00
Nick Mathewson
a11a817e36
Use EXIT properly in assert_connection_ok
...
svn:r465
2003-09-16 19:51:09 +00:00
Nick Mathewson
c4cc4bde16
Add first cut of assert_*_ok functions
...
svn:r464
2003-09-16 19:36:19 +00:00
Nick Mathewson
f0834803fe
Add backend support for multiple logfiles, including console logs.
...
Also optimize logging by formatting messages in memory before sending
them through stdio. (It turns out (according to gprof) that logging
performance matters.)
svn:r463
2003-09-16 17:58:36 +00:00
Nick Mathewson
a1de36b80b
Add #ifdef'd code (on by default) to allocate ACIs sequentially.
...
svn:r462
2003-09-16 17:17:39 +00:00
Roger Dingledine
3d2320a9c3
clean up exported api's
...
svn:r461
2003-09-16 05:41:49 +00:00
Roger Dingledine
9f1f6e21d2
refactor connects into connection_connect()
...
svn:r460
2003-09-16 01:58:46 +00:00
Nick Mathewson
c3075b758c
Cipher lists need to be colon separated. Also make initialization more bulletproof
...
svn:r459
2003-09-15 19:38:52 +00:00
Nick Mathewson
fc6d1c97b9
Fix TLS error logging
...
svn:r458
2003-09-15 18:37:49 +00:00
Nick Mathewson
7c8e07722c
Log protocol errors
...
svn:r457
2003-09-15 18:18:37 +00:00
Roger Dingledine
4581f5f166
bugfix: onion pending queue now works
...
and fixed recent memory leak
svn:r456
2003-09-14 08:17:14 +00:00
Roger Dingledine
b45569bc4a
finally tracked down the seg fault
...
svn:r455
2003-09-14 06:43:18 +00:00
Roger Dingledine
cb5d22f97f
fix the cpuworker circ-had-vanished bug (maybe)
...
still several (many) tls-related bugs outstanding.
svn:r454
2003-09-14 02:58:50 +00:00
Roger Dingledine
fb2a464434
let tor compile with tls on rh9
...
nick: is this the right way to do the autoconf stuff? what happens when
/usr/kerberos/include/ doesn't exist?
an alternate way is to add `pkg-config --cflags openssl` to CFLAGS, but
it seems that command only works on rh9. yay portability issues.
svn:r453
2003-09-14 01:44:44 +00:00
Roger Dingledine
6f41b06b4b
fix two more bugs
...
svn:r452
2003-09-13 21:53:38 +00:00
Roger Dingledine
0cc888cdb3
reshuffle functions for cleaner organization
...
svn:r451
2003-09-12 22:45:31 +00:00
Roger Dingledine
c0c31d3524
tls works between routers now too
...
things are still a bit shaky
svn:r450
2003-09-12 06:50:21 +00:00
Roger Dingledine
7b73cf1319
tls works with onion proxies now.
...
svn:r449
2003-09-12 06:20:36 +00:00
Roger Dingledine
b5a9a1925a
serious bug in cpuworker. need to think about redesign or how to handle it.
...
svn:r448
2003-09-12 06:18:38 +00:00
Nick Mathewson
9d582789a6
Fix bugs in certificate generation and SSL context creation. Both seem to work now.
...
svn:r447
2003-09-11 23:26:31 +00:00
Roger Dingledine
ffffc0b9ea
update onion router configs for tls
...
svn:r446
2003-09-11 22:20:16 +00:00
Roger Dingledine
d0e4879da6
check for funny business from the remote peer
...
svn:r445
2003-09-11 22:19:48 +00:00
Nick Mathewson
807307101c
Non-debugging messages are nice to log too
...
svn:r444
2003-09-11 22:13:13 +00:00
Nick Mathewson
4432bd17aa
Resolve XXXXs in tortls.c
...
svn:r443
2003-09-11 21:38:57 +00:00
Nick Mathewson
d852a4b64b
Simplify some code paths in TLS; cut down on memory leaks; use
...
reasonable ciphers if not everyone has OpenSSL 0.9.7.
svn:r442
2003-09-11 21:12:39 +00:00
Nick Mathewson
093a9392bc
Add router_get_by_pk function; use in connection_tls_finish_handshake.
...
svn:r441
2003-09-11 20:32:15 +00:00
Roger Dingledine
6987a738e4
fix typo that's been bugging me
...
svn:r440
2003-09-11 20:10:39 +00:00
Roger Dingledine
ad17de1001
collect info from peer we just handshaked with
...
svn:r439
2003-09-11 20:06:55 +00:00
Nick Mathewson
bfd9ef03cb
Add certificate verification functions
...
svn:r438
2003-09-10 00:47:39 +00:00
Nick Mathewson
445f6cdff1
Make crypto structures private to crypto.c
...
svn:r437
2003-09-10 00:47:24 +00:00
Nick Mathewson
272593ba39
Add prototypes for functions to check whether the peer certificate is
...
valid (if it is present); and to get a public key from a peer
certificate (in order to identify the peer).
svn:r436
2003-09-10 00:10:37 +00:00
Roger Dingledine
d357430274
fix confirmed win32 bug
...
svn:r435
2003-09-08 23:10:24 +00:00
Roger Dingledine
b3343385bb
tls infrastructure now in place, give or take
...
svn:r434
2003-09-08 10:59:00 +00:00
Roger Dingledine
7438e169f4
another wishlist function for the tls interface
...
svn:r433
2003-09-08 10:46:19 +00:00