[tor-bugs] #15244 [Tor]: Add helper functin that validates a .onion address
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Mar 12 18:20:30 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):
Replying to [comment:3 nickm]:
> A lot of this logic is in parse_extended_hostname; you could refactor it
out of there, but you'd need to split out the part that changes the
address.
I agree, I would do a simple refactor here to create a "is valid onion
address" function that `parse_extended_hostname` could use. Simple move
around code so we can have one that validates and can take a const char
and the other can parse it like it does right now.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/15244#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list