[tor-bugs] #22684 [Core Tor/Tor]: Expose we_fetch_{micro, router_}descriptors on control port

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jun 21 16:26:45 UTC 2017


#22684: Expose we_fetch_{micro,router_}descriptors on control port
--------------------------+------------------------------------
 Reporter:  nickm         |          Owner:  nickm
     Type:  enhancement   |         Status:  accepted
 Priority:  Medium        |      Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  tor-control   |  Actual Points:
Parent ID:                |         Points:  .1
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by nickm):

 Here's the snippet, for when we decide what to name it:
 {{{
 +  } else if (!strcmp(question, "config/we-download-microdescs")) {
 +    int r = we_download_microdescriptors(get_options());
 +    tor_asprintf(answer, "%d", !!r);
 +  } else if (!strcmp(question, "config/we-download-routerdescs")) {
 +    int r = we_download_router_descriptors(get_options());
 +    tor_asprintf(answer, "%d", !!r);
    }
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22684#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list