Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-05-15 | rust: Export digests subcrate from our crypto crate. | Isis Lovecruft | |
2018-05-11 | Merge remote-tracking branch 'catalyst-github/bug25756' | Nick Mathewson | |
2018-05-11 | Merge remote-tracking branch 'public/bug25994' | Nick Mathewson | |
2018-05-11 | get rid of whitespace before #ifdef's | Roger Dingledine | |
i don't know if whitespace is ok to have before preprocessing directives on all platforms, but anyway we almost never have it, so now things are more uniform. | |||
2018-05-11 | control: Mask the event(s) before using ANY_EVENT_IS_INTERESTING() | David Goulet | |
Before this commit, the control events were never triggered. It was introduced with commit 0c19ce7bdece5906e035e71d3fb682632c8bb9cb. Fixes #26082 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-05-11 | Merge remote-tracking branch 'asn-github/bug26078' | Nick Mathewson | |
2018-05-11 | Properly ignore retval of event_del(). | George Kadianakis | |
Fixes #26078: CID 1435546. | |||
2018-05-11 | Merge remote-tracking branch 'saper-github/x509_cert_free_crash' | Nick Mathewson | |
2018-05-11 | testing: X509 certificate structure needs to be initialized | Marcin Cieślak | |
We alloc/free X.509 structures in three ways: 1) X509 structure allocated with X509_new() and X509_free() 2) Fake X509 structure allocated with fake_x509_malloc() and fake_x509_free() May contain valid pointers inside. 3) Empty X509 structure shell allocated with tor_malloc_zero() and freed with tor_free() | |||
2018-05-10 | Merge remote-tracking branch 'public/bug25981' | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.3.3' | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.3.2' into maint-0.3.3 | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.3.1' into maint-0.3.2 | Nick Mathewson | |
2018-05-10 | Merge remote-tracking branch 'dgoulet/bug26069_031_01' into maint-0.3.1 | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.3.3' | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.3.2' into maint-0.3.3 | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.3.1' into maint-0.3.2 | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.2.9' into maint-0.3.1 | Nick Mathewson | |
2018-05-10 | Merge remote-tracking branch 'juga/ticket26007_029_02' into maint-0.2.9 | Nick Mathewson | |
2018-05-10 | hs-v3: Add an extra white-space when parsing descriptor | David Goulet | |
The specification describes the signature token to be right after a newline (\n) then the token "signature" and then a white-space followed by the encoded signature. This commit makes sure that when we parse the signature from the descriptor, we are always looking for that extra white-space at the end of the token. It will allow us also to support future fields that might start with "signature". Fixes #26069 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-05-10 | Merge branch 'ticket26063_squashed' | Nick Mathewson | |
2018-05-10 | Merge branch 'ticket26064' | Nick Mathewson | |
2018-05-10 | Enable/disable per-second callback as needed. | Nick Mathewson | |
There are three cases where this can happen: changes in our controller events, changes in our DisableNetwork setting, and changes in our hibernation state. Closes ticket 26063. | |||
2018-05-10 | Add a new function to enable/disable the per-second timer as needed | Nick Mathewson | |
We're about to use this to turn off the per-second timer when the network is disabled and there aren't any per-second controller events enabled. | |||
2018-05-10 | Remove a workaround for ancient libevent versions. | Nick Mathewson | |
Libevent has accepted a const timeval argument to event_add() for a very long time now. | |||
2018-05-10 | Add functions to enable/disable periodic_event_t objects. | Nick Mathewson | |
2018-05-10 | Merge remote-tracking branch 'dgoulet/ticket26062_034_01' | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.3.2' into maint-0.3.3 | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.3.1' into maint-0.3.2 | Nick Mathewson | |
2018-05-10 | Merge branch 'maint-0.2.9' into maint-0.3.1 | Nick Mathewson | |
2018-05-09 | Merge branch 'ticket26016' | Nick Mathewson | |
2018-05-09 | Merge branch 'ticket26009' | Nick Mathewson | |
2018-05-09 | spelling fix | Nick Mathewson | |
2018-05-09 | Fix some clang warnings | Nick Mathewson | |
2018-05-09 | Mark the 1-per-sec update_current_time() call as redundant. | Nick Mathewson | |
We still do this time update here, since we do it from all callbacks, but it is no longer a reason to keep the once-per-second callback enabled. Closes ticket 26009. | |||
2018-05-09 | Distinguish true clock jumps from idleness | Nick Mathewson | |
Since we're going to be disabling the second-elapsed callback, we're going to sometimes have long periods when no events file, and so the current second is not updated. Handle that by having a better means to detect "clock jumps" as opposed to "being idle for a while". Tolerate far more of the latter. Part of #26009. | |||
2018-05-09 | Give responsibility for waking up from DORMANT to a mainloop event | Nick Mathewson | |
Closes ticket 26064. | |||
2018-05-09 | Having a ControlPort open doesn't mean we are a client | David Goulet | |
The any_client_port_set() returns true if the ControlPort is set which is wrong because we can have that port open but still not behave as a tor client (like many relays for instance). Fixes #26062 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-05-09 | Having a ControlPort open doesn't mean we are a client | David Goulet | |
The options_any_client_port_set() returns true if the ControlPort is set which is wrong because we can have that port open but still not behave as a tor client (like many relays for instance). Fixes #26062 Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-05-09 | config: Move any_client_port_set() to config.c | David Goulet | |
This functions is now used outside of networkstatus.c and makes more sense to be in config.c. It is also renamed to options_any_client_port_set() for the config.c namespace. No code behavior change. Signed-off-by: David Goulet <dgoulet@torproject.org> | |||
2018-05-09 | Use net_is_completely_disabled() in connection.c | Nick Mathewson | |
This fixes the XXXX case that we had before, and also enforces the rule that we won't open connections when we're in hard hibernation. | |||
2018-05-09 | Add a new net_is_completely_disabled() function | Nick Mathewson | |
2018-05-09 | Comment-only fix: annotate we_are_hibernating() usage | Nick Mathewson | |
Everywhere we use we_are_hibernating(), remind the reader what it means. (Also, add an XXXX to note a DisableNetwork usage to change later.) | |||
2018-05-09 | Add we_are_fully_hibernating() to distinguish hibernation states | Nick Mathewson | |
We want to tell "shut down" from "shutting down". | |||
2018-05-09 | Give control.c responsibility for its own once-a-second events | Nick Mathewson | |
Now it has a function that can tell the rest of Tor whether any once-a-second controller item should fire, and a function to fire all the once-a-second events. | |||
2018-05-09 | Add a macro to simplify control_update_global_event_mask(). | Nick Mathewson | |
2018-05-09 | Test read bandwidth measurements with empty file | juga0 | |
2018-05-09 | Merge branch 'maint-0.3.2' into maint-0.3.3 | Nick Mathewson | |
2018-05-09 | Merge branch 'maint-0.3.3' | Nick Mathewson | |
2018-05-09 | Merge remote-tracking branch 'asn-github/bug25761_032' into maint-0.3.2 | Nick Mathewson | |