aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuit.c
Commit message (Collapse)AuthorAge
* stop the circuit_receive_relay_cell warningRoger Dingledine2004-05-02
| | | | | | | | mark the circ for close if circuit_extend fails because the next hop is not up yet; don't just return -1 svn:r1765
* Remove IVs from cipher code, since AES-ctr has none.Nick Mathewson2004-04-28
| | | | svn:r1742
* Make Tor build on win32 with VC6 without warnings.Nick Mathewson2004-04-28
| | | | svn:r1739
* make my assumption explicitRoger Dingledine2004-04-27
| | | | svn:r1730
* it was the second bug that was nailing us.Roger Dingledine2004-04-27
| | | | | | | | | | periodically we expire some circuits if we already have enough, and we were counting rend circs in that number. (the first one wasn't a bug after all) svn:r1729
* don't expire joined-rend circs that have an exit connection attachedRoger Dingledine2004-04-27
| | | | | | | and don't expire non-general excess circuits svn:r1728
* Refactor crypto error handling to be more like TLS error handling:Nick Mathewson2004-04-26
| | | | | | | | | | | | | crypto_perror is a no-no, since an operation can set more than one error. Also, fix a bug in the unix crypto_seed_rng: mixing stdio with /dev/urandom is a bad idea, since fopen can make all kinds of weird extraneous syscalls (mmap, fcntl, stat64, etc.) and since fread tends to buffer data in big chunks, thus depleting the entropy pool. svn:r1717
* since we don't support truncateds much, don't bother sending them;Roger Dingledine2004-04-26
| | | | | | | | | just close the circ. (this wasn't relevant before, because we were mis-handling destroys.) svn:r1711
* fix a bug that's been lurking since 27 may 03 (!)Roger Dingledine2004-04-26
| | | | | | | | when passing back a destroy cell, we would use the wrong circ id. how the heck did this work? svn:r1710
* use tor_assertRoger Dingledine2004-04-25
| | | | | | | remove obsolete BUF_OK macro svn:r1697
* Remove onion_pkey from connection, since onion keys can change more often ↵Nick Mathewson2004-04-25
| | | | | | than connections. Also add more log messages svn:r1693
* tmp patch to also expire old clean rend_ready circs for nowRoger Dingledine2004-04-18
| | | | | | | will have to be fixed once we build-and-open rend circs preemptively svn:r1668
* if an intro circ waiting for an ack dies before getting one, thenRoger Dingledine2004-04-18
| | | | | | | count it as a nack svn:r1665
* log n_circ_ids when attaching rend streamsRoger Dingledine2004-04-17
| | | | svn:r1657
* a ! goes a long way toward more helpful debug messagesRoger Dingledine2004-04-17
| | | | svn:r1656
* more debugging to hunt for a bugRoger Dingledine2004-04-17
| | | | svn:r1647
* i was wrong about one of my invariantsRoger Dingledine2004-04-16
| | | | | | | | | now it's commented this should fix asserts when you try an intro point, get a nack, and try a second one and it works. svn:r1637
* make unattached rend streams expire after a while (60s)Roger Dingledine2004-04-15
| | | | | | | | | (they were darned persistent) also make intro circs that are waiting for acks expire after a while (20s) svn:r1628
* prune abandoned circs betterRoger Dingledine2004-04-14
| | | | | | | add debugging info for the bug weasel found svn:r1626
* Retry non-final-hop rendezvous failuresNick Mathewson2004-04-14
| | | | svn:r1625
* call circuit_build_failed() even when the failure is immediateRoger Dingledine2004-04-14
| | | | svn:r1617
* let introcircs receive acks. rend streams now deal correctly again.Roger Dingledine2004-04-13
| | | | | | | (i think) svn:r1614
* Separate "start-establishing-introduction" from "upload descriptors"; only ↵Nick Mathewson2004-04-13
| | | | | | upload descriptors containing fully established intro points. svn:r1607
* clean up circuit rebuilding some; fix some bugs we hadn't hit yetRoger Dingledine2004-04-13
| | | | svn:r1606
* Get the rest of intro-ack/nak handling in ... except for the tricky "pick a ↵Nick Mathewson2004-04-13
| | | | | | new intro and re-extend and re-try" part. svn:r1601
* break circuit_build_needed_circs into its own funcRoger Dingledine2004-04-12
| | | | svn:r1596
* expire old CIRCUIT_PURPOSE_C_REND_READY circs tooRoger Dingledine2004-04-09
| | | | svn:r1585
* circuit-level sendmes weren't working, because the exitRoger Dingledine2004-04-08
| | | | | | | | | thought it was an exit. i overhauled the edge_type mechanism. hopefully this will help. svn:r1570
* Launch intro services after launching connections; allow ORs to build ↵Nick Mathewson2004-04-08
| | | | | | circuits through as-yet-unconnectd ORs svn:r1562
* Nothing is good enough for you, is it?Nick Mathewson2004-04-08
| | | | svn:r1556
* Use CIRCUIT_IS_ORIGIN in favor of boolean circ->cpathNick Mathewson2004-04-08
| | | | svn:r1555
* only call circuit_build_failed when we're circ's originRoger Dingledine2004-04-08
| | | | svn:r1554
* Split out major functionality of circuit_get_best; rephrase a few booleansNick Mathewson2004-04-08
| | | | svn:r1547
* don't pick myself or my twins as hops when building circuitsRoger Dingledine2004-04-07
| | | | svn:r1531
* Carefully increment failure counts when appropriateNick Mathewson2004-04-07
| | | | svn:r1530
* expire open-but-not-yet-acked circs if they're too oldRoger Dingledine2004-04-07
| | | | svn:r1526
* convince ourselves that circuit_failed doesn't have to be any smarterRoger Dingledine2004-04-07
| | | | svn:r1525
* Delete trailing whitespace and expand tabs; remove unused aes decrypt codeNick Mathewson2004-04-07
| | | | svn:r1522
* let alice reuse recent rendjoin circsRoger Dingledine2004-04-07
| | | | svn:r1519
* when counting how many being-built circs will handle a stream,Roger Dingledine2004-04-07
| | | | | | | don't count ones that are too old svn:r1517
* alice just fetched bob's hidden webpage.Roger Dingledine2004-04-06
| | | | | | | yay. svn:r1512
* set the circ windows on the middle hop of the rend circsRoger Dingledine2004-04-06
| | | | svn:r1511
* checkpoint commit: rend closer to working, still not there yetRoger Dingledine2004-04-06
| | | | svn:r1506
* Continue attack on magic numbers; use new crypto wrappers where possibleNick Mathewson2004-04-06
| | | | svn:r1504
* make rend apconn send to the right cpath layerRoger Dingledine2004-04-05
| | | | | | | and fix circuit_log_path to know about rend circs svn:r1496
* Make init_cpath_crypto able to handle both sides of handshake, by adding a ↵Nick Mathewson2004-04-05
| | | | | | "reverse" flag svn:r1489
* alice can now look up bob's service descriptor,Roger Dingledine2004-04-05
| | | | | | | | | | | | | | | | | 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
* nick, can you make and send the rendezvous cookie?Roger Dingledine2004-04-03
| | | | svn:r1467
* Use (set|get)_uint(16|32) in lieu of memcpy where reasonable.Nick Mathewson2004-04-03
| | | | svn:r1462
* more progress on alice's sideRoger Dingledine2004-04-03
| | | | svn:r1461