Commit Graph

907 Commits

Author SHA1 Message Date
Nick Mathewson
8a17d9e5d3 Finish implementing the rest of the exitpolicy stuff, except for automatically starting circuit builds.
svn:r813
2003-11-16 05:33:45 +00:00
Nick Mathewson
a8eaa79e03 Improved exit policy syntax; basic client-side DNS caching.
- Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and bitcounts
  18.0.0.0/8.  Policies are parsed on startup, not when comparing to them.

- desired_path_len is now part of an opaque cpath_build_state_t structure.

- END_REASON_EXITPOLICY cells no longer include a port.

- RELAY_COMMAND_CONNECTED cells now include the IP address we've connected
  to.

- connection_edge now has a client_dns cache to remember resolved addresses.
  It gets populated by RELAY_COMMAND_CONNECTED cells and END_REASON_EXITPOLICY
  cells.  It gets used by connection_ap_handshake_send_begin.  We don't
  compare it to exit policies yet.


svn:r812
2003-11-14 20:45:47 +00:00
Roger Dingledine
273da1d3c4 commencing the bughunt
svn:r811
2003-11-14 07:15:52 +00:00
Roger Dingledine
c8639b2bbc bump default pathlen to 3; clean up surrounding code
svn:r810
2003-11-13 23:01:56 +00:00
Roger Dingledine
56cd147eb9 let getconfig survive repeated calls. now we call it again when we hup.
change RecommendedVersions into a config option, so dirservers can hup
  for a new one


svn:r809
2003-11-13 06:49:25 +00:00
Roger Dingledine
cc8ce64cb2 fix trivial typo
svn:r808
2003-11-13 06:45:59 +00:00
Roger Dingledine
aac29076da warn on startup that we don't provide anonymity
make exit dns cache entries last 15 minutes


svn:r807
2003-11-13 04:51:34 +00:00
Nick Mathewson
ddd7ebe307 Add my 0.0.2pre14 tasks to top of TODO.
svn:r806
2003-11-13 01:01:35 +00:00
Roger Dingledine
f5829aa723 lay groundwork for EntryNodes and ExitNodes
svn:r805
2003-11-12 19:34:34 +00:00
Roger Dingledine
9358381d83 break out the string manipulation routines
svn:r804
2003-11-12 19:34:19 +00:00
Roger Dingledine
3b392717e0 give us a plan for pre14
svn:r803
2003-11-12 18:55:07 +00:00
Roger Dingledine
fbb0a450ee update the FAQ so it's just useless, not wrong
svn:r802
2003-11-12 17:34:41 +00:00
Paul Syverson
0763f80054 Update and uncomment the Acks section. Also uncomment the authors.
A spacing tweak.


svn:r801
2003-11-12 17:25:53 +00:00
Roger Dingledine
4ba8bc0a73 make dir parsing robust to invalid but well-formed descriptors
svn:r800
2003-11-12 05:12:51 +00:00
Nick Mathewson
5e4b9c6b61 Remove minor biasing problem from crypto_pseudo_rand_int
svn:r799
2003-11-12 04:28:30 +00:00
Roger Dingledine
7e4cb9a750 connection_ap_handshake_send_begin always succeeds
svn:r798
2003-11-12 04:24:04 +00:00
Nick Mathewson
785f5cdac8 Make crypto_pseudo_rand* never fail.
svn:r797
2003-11-12 04:12:35 +00:00
Nick Mathewson
99a6d48f62 Restore erroneously removed assert
svn:r796
2003-11-12 03:48:33 +00:00
Nick Mathewson
e0ad4d08be Fix thinko: Failure and success are different things.
svn:r795
2003-11-12 03:01:38 +00:00
Nick Mathewson
2e05b9ccf9 Remove dead code
svn:r794
2003-11-12 02:58:45 +00:00
Nick Mathewson
7d441ec6b4 Compute paths as we build them.
svn:r793
2003-11-12 02:55:38 +00:00
Nick Mathewson
e6296a4e2f Refactor onion_generate_cpath to build cpaths one hop at a time. This
is a the first step in computing hops one step at a time.  Next, we move
the responsibility for calling onion_extend_cpath into circuit.c

(Later, we may want to special-case onion_extend_cpath to treat entry
and exit routers differently.)


svn:r792
2003-11-12 02:32:20 +00:00
Roger Dingledine
9a0a638c02 point out bug
svn:r791
2003-11-11 19:47:51 +00:00
Roger Dingledine
9c8a54a39f more cleanups and bugfix
svn:r790
2003-11-11 17:21:35 +00:00
Roger Dingledine
d0acbe86d1 prioritize and rearrange the TODO
svn:r789
2003-11-11 07:50:12 +00:00
Roger Dingledine
5a6bb0333e leave conn->socks_request around after the begin
that way we can reuse it if we need to try another begin later


svn:r788
2003-11-11 06:42:10 +00:00
Roger Dingledine
84884a79c0 conn->socks_version is obsolete
svn:r787
2003-11-11 04:13:37 +00:00
Roger Dingledine
2a3479af5f respond to nick's questions
svn:r786
2003-11-11 04:09:34 +00:00
Roger Dingledine
3d19a9b514 fix a bug in handling clock skew
svn:r785
2003-11-11 04:08:30 +00:00
Nick Mathewson
7bde42676b Rename aci to circ_id throughout.
svn:r784
2003-11-11 03:01:48 +00:00
Nick Mathewson
dafb0e6a6e Make AP connections wait for a circuit if none exists.
Also:
  - Refactor socks request into a separate struct
  - Add a separate 'waiting for circuit' state to AP connections
    between 'waiting for socks' and 'open'.

Arma: can you check out the XXX's I've added to connection_edge? I may
be mishandling some async and close logic.


svn:r783
2003-11-11 02:41:31 +00:00
Nick Mathewson
894b1bc5d0 clean up some TODO items; rename ACI to circID
svn:r782
2003-11-11 02:36:50 +00:00
Roger Dingledine
1c37f631ff add a paragraph that should have been there
svn:r781
2003-11-10 23:10:42 +00:00
Roger Dingledine
1969c8a92f client now survives going offline better
fix badness in usage()
if neither socksport nor orrport is defined, quit
obsolete connection_flush_buf()


svn:r780
2003-11-10 08:06:55 +00:00
Nick Mathewson
3c4b4c8cac Check in a working cross-platform timegm
svn:r779
2003-11-10 06:28:53 +00:00
Nick Mathewson
3dddcf4306 Add lots of logging to dns.c; change behavior of often-failing assertion
svn:r778
2003-11-08 04:02:05 +00:00
Roger Dingledine
24cff42ff7 final commit. it is submitted.
svn:r777
2003-11-05 06:00:44 +00:00
Nick Mathewson
5f55ad3d8b Edit to last checkin: add hyphen to phrasal adjective.
svn:r776
2003-11-05 05:34:58 +00:00
Roger Dingledine
1497727488 finish edits on sec7
svn:r775
2003-11-05 05:29:35 +00:00
Nick Mathewson
9aeaab0480 The government is not the judiciary
svn:r774
2003-11-05 05:06:28 +00:00
Roger Dingledine
d0ccf76035 edits on active attacks
svn:r773
2003-11-05 04:59:47 +00:00
Nick Mathewson
1520e93c14 s/web server/webserver/
svn:r772
2003-11-05 04:30:35 +00:00
Roger Dingledine
26744718b2 if latex8.sty is there, the bst should be too
svn:r771
2003-11-05 04:24:24 +00:00
Roger Dingledine
b85e6fd08d edits on passive attacks (sec7)
svn:r770
2003-11-05 04:23:02 +00:00
Nick Mathewson
3fd2a03563 Reinstate sentence at start of 7; add page numbers
svn:r769
2003-11-05 03:53:20 +00:00
Nick Mathewson
663a4d9638 Spell P5 right.
svn:r768
2003-11-05 03:46:13 +00:00
Roger Dingledine
2ebad9853d resolve some XXX's
svn:r767
2003-11-05 03:44:58 +00:00
Nick Mathewson
b6f88fc066 Edits to edits. Revert change to central gutter width; cut back down to under 15 pages.
svn:r766
2003-11-05 01:58:07 +00:00
Roger Dingledine
6c68317577 compress sec1-3, we're at 15pg with standard latex8.sty now
svn:r765
2003-11-05 01:46:32 +00:00
Roger Dingledine
868b3c9724 more edits and compression
svn:r764
2003-11-05 01:29:36 +00:00