[tor-bugs] #15244 [Tor]: Add helper functin that validates a .onion address

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Mar 12 18:24:39 UTC 2015


#15244: Add helper functin that validates a .onion address
-----------------------------+--------------------------------
     Reporter:  dgoulet      |      Owner:  dgoulet
         Type:  enhancement  |     Status:  new
     Priority:  normal       |  Milestone:  Tor: 0.2.7.x-final
    Component:  Tor          |    Version:
   Resolution:               |   Keywords:  tor-hs
Actual Points:               |  Parent ID:
       Points:               |
-----------------------------+--------------------------------

Comment (by dgoulet):

 Hrm actually, looking at `rend_valid_service_id`, seems what we want...

 Is this enough to make sure the decode32 will always work?

 {{{
 strspn(query, BASE32_CHARS) != REND_SERVICE_ID_LEN_BASE32`
 }}}

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


More information about the tor-bugs mailing list