Commit Graph

1503 Commits

Author SHA1 Message Date
Nick Mathewson 8fa6800e9c Continue attack on magic numbers; use new crypto wrappers where possible
svn:r1504
2004-04-06 20:16:12 +00:00
Nick Mathewson c936645111 Remove the last tab in non-contributed code
svn:r1503
2004-04-06 03:46:37 +00:00
Nick Mathewson 7294dbdf9d Document stuff, reduce magic numbers, add emacs magic
svn:r1502
2004-04-06 03:44:36 +00:00
Peter Palfrader c91fff0bc7 Document :n-m exit policy
svn:r1501
2004-04-06 01:00:26 +00:00
Roger Dingledine 2e344f2717 finish off a bunch of rend todo, add more
svn:r1500
2004-04-06 00:56:24 +00:00
Roger Dingledine 67f77dc8d9 fix the bob-can't-decode-relays bug
now alice can send the begin and bob can receive it.


svn:r1499
2004-04-05 23:40:59 +00:00
Roger Dingledine 80020ea0e9 don't detach-and-retry rendezvous streams
svn:r1498
2004-04-05 22:43:01 +00:00
Nick Mathewson a41af0a752 make router_get_by_nickname consider this router.
svn:r1497
2004-04-05 22:22:42 +00:00
Roger Dingledine 48d8b88676 make rend apconn send to the right cpath layer
and fix circuit_log_path to know about rend circs


svn:r1496
2004-04-05 22:01:35 +00:00
Nick Mathewson 1607a7981d More symbolic constants for checking rendezvous1 cell lengths
svn:r1495
2004-04-05 21:40:22 +00:00
Nick Mathewson cd9fa3ab53 Use correct payload lengths when sending RENDEZVOUS1 cells
svn:r1494
2004-04-05 21:39:47 +00:00
Nick Mathewson 58b9834d80 Spec conformance: KH|"INTRODUCE" is only for establishing intro pt
svn:r1493
2004-04-05 21:39:18 +00:00
Nick Mathewson 75ba25fc5b Add a missing offset
svn:r1492
2004-04-05 21:31:53 +00:00
Nick Mathewson ee91f69bbd Use symbolic constants; make padding types match.
svn:r1491
2004-04-05 21:15:14 +00:00
Nick Mathewson 05eb1263f8 Implement response to RENDEZVOUS2 cell.
svn:r1490
2004-04-05 20:53:50 +00:00
Nick Mathewson 174b56424b Make init_cpath_crypto able to handle both sides of handshake, by adding a "reverse" flag
svn:r1489
2004-04-05 20:53:04 +00:00
Nick Mathewson 4f348f8ff4 add more constants
svn:r1488
2004-04-05 20:52:16 +00:00
Nick Mathewson fd1f94334b It's amazing how wrong things look when you invert the booleans on your
sanity checks.


svn:r1487
2004-04-05 20:34:58 +00:00
Nick Mathewson 6b528a2da9 Slightly more helpful msg on mismatched service pk digest in INTRODUCE2 cell
svn:r1486
2004-04-05 20:33:29 +00:00
Nick Mathewson 287db12631 Do first half of Alice-side of DH handshake.
svn:r1485
2004-04-05 20:30:53 +00:00
Roger Dingledine 935011f44e oaep uses 42 more bytes -- stop clobbering buffers
also maybe fix some constants here and there -- nick?


svn:r1484
2004-04-05 18:22:00 +00:00
Roger Dingledine 7f06311c26 strdup the intro point when you pick it, so you
don't free it and then return it


svn:r1483
2004-04-05 17:56:34 +00:00
Roger Dingledine b7f80f933e complain early if we get an unrecognized nickname from
bob's rend service descriptor


svn:r1482
2004-04-05 17:51:00 +00:00
Nick Mathewson f1870212c5 use the right variable when comparing hashes; maybe fix "Hash of session" bug
svn:r1481
2004-04-05 17:36:30 +00:00
Nick Mathewson 5d03779986 Expect a 20-byte nul-padded-and-terminated nickname
svn:r1480
2004-04-05 17:28:48 +00:00
Nick Mathewson 8241ec883f Add some temporary log calls to try to debug the "Hash of session info was not as expected" problem
svn:r1479
2004-04-05 17:20:57 +00:00
Nick Mathewson 0a7083aff6 i2d_RSAPublicKey advances the pointer it receives past the ASN1-encoded string.
svn:r1478
2004-04-05 17:10:48 +00:00
Roger Dingledine 1c99f82656 if a rend stream has already been attached to a rend circ,
then don't attach it again (and again, and again, and...)


svn:r1477
2004-04-05 15:24:03 +00:00
Roger Dingledine 8cf658a92e send a destroy after we send an introduce
svn:r1476
2004-04-05 15:17:34 +00:00
Roger Dingledine 375c46ecdd more alice-side infrastructure
handle rendezvous acks,
do rend begin cells right,
send an introduction cell (sort of)
receive a rendezvous2 cell (sort of)


svn:r1475
2004-04-05 07:41:31 +00:00
Roger Dingledine ea792792f1 rend point nickname is nul-padded to avoid revealing rend point
svn:r1474
2004-04-05 05:04:55 +00:00
Roger Dingledine e2fa5bb5c7 bob's rend desc must list >=1 intro point
plus note a bug in our spec that we should fix


svn:r1473
2004-04-05 04:42:00 +00:00
Roger Dingledine 7983b84524 nicknames are at most 19 chars
svn:r1472
2004-04-05 04:41:32 +00:00
Roger Dingledine b6eb972533 alice can now look up bob's service descriptor,
choose an intro point, connect to it,
choose a rend point, connect to it and establish a cookie,
get an ack from the rendezvous point,
and know when both circs are ready for her.

APConns don't use conn->purpose anymore

don't initiate a renddesc lookup if one is already in progress

also fix a buffer overflow in nickname parsing (only exploitable
by the operator though)


svn:r1471
2004-04-05 00:47:48 +00:00
Nick Mathewson c67ea22047 Implement acks
svn:r1470
2004-04-03 04:55:22 +00:00
Nick Mathewson 1afa14d3d6 Add func to generate,set,and send rend cookie
svn:r1469
2004-04-03 04:22:22 +00:00
Nick Mathewson ae65615c18 Make it build on linux
svn:r1468
2004-04-03 04:08:54 +00:00
Roger Dingledine 125623d388 nick, can you make and send the rendezvous cookie?
svn:r1467
2004-04-03 04:05:30 +00:00
Nick Mathewson bc84a23656 Make "common" no longer depend on or.h
svn:r1466
2004-04-03 04:05:12 +00:00
Nick Mathewson 301de200a7 Strdup hates finding 0 bytes.
svn:r1465
2004-04-03 03:39:31 +00:00
Nick Mathewson b47e8b8973 Handle rendezvous relay cells
svn:r1464
2004-04-03 03:37:11 +00:00
Roger Dingledine 27e0b0ec30 publish and fetch the right rendezvous urls
svn:r1463
2004-04-03 03:33:57 +00:00
Nick Mathewson f6cf771c1b Use (set|get)_uint(16|32) in lieu of memcpy where reasonable.
svn:r1462
2004-04-03 03:07:25 +00:00
Roger Dingledine b9890f8893 more progress on alice's side
svn:r1461
2004-04-03 03:06:06 +00:00
Nick Mathewson 6ae59c4fc5 Loops work better when they terminate. Non-terminating loops are easier
to diagnose when they don't trash the stack.


svn:r1460
2004-04-03 02:55:42 +00:00
Nick Mathewson f6252564a3 Build without warnings against openssl 0.9.6
svn:r1459
2004-04-03 02:43:09 +00:00
Nick Mathewson df2bdf5483 Refactor the heck out of crypto interface: admit that we will stick with one ciphersuite at a time, make const things const, and stop putting openssl in the headers.
svn:r1458
2004-04-03 02:40:30 +00:00
Roger Dingledine 60929899c2 it's HiddenServiceDir
svn:r1457
2004-04-03 02:37:13 +00:00
Roger Dingledine 52bdeb0642 tabs
svn:r1456
2004-04-03 02:14:20 +00:00
Roger Dingledine f810d7e735 alice can intercept y.onion requests, do a lookup on them via tor,
and receive a 404


svn:r1455
2004-04-03 01:59:53 +00:00