[tor-bugs] #33547 [Core Tor/Tor]: Config: add a type or helper for range-restricted variables

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Mar 7 14:44:16 UTC 2020


#33547: Config: add a type or helper for range-restricted variables
------------------------------+--------------------------------
     Reporter:  nickm         |      Owner:  (none)
         Type:  enhancement   |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.4.4.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 Very frequently we want to have a config type that is "int, restricted to
 some range of values".  We should have a means to represent that, and
 thereby save a bunch of boilerplate code.

 This could be done with new var_type_def_t for each range, but that could
 get out of hand.  Probably we want a way to add more info to the
 config_var_t.

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


More information about the tor-bugs mailing list