[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #7555 [Tor]: MapAddress from FQDN to .onion fails because resolve requests for hidden services are not allowed.



#7555: MapAddress from FQDN to .onion fails because  resolve requests for hidden
services are not allowed.
------------------------+---------------------------------------------------
 Reporter:  aagbsn      |          Owner:                    
     Type:  defect      |         Status:  new               
 Priority:  normal      |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor         |        Version:  Tor: unspecified  
 Keywords:  tor-client  |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by rransom):

 Replying to [comment:13 aagbsn]:
 > Ahh, I forgot C convention is to return 0 on success. :-(

 There is no general C convention for return values, but `memcmp` and
 `strcmp` return a negative value if their first argument is less than the
 second argument, zero if the arguments are equal, and a positive value if
 their first argument is greater than the second argument.  `strcasecmpend`
 is related to `strcmp`.  Perhaps it should be replaced with `strcaseeqend`
 in Tor.  (Tor implements a `tor_memeq` function which returns non-zero iff
 its arguments are equal; it additionally runs in data-independent time to
 avoid side-channel leaks.)

 > What I don't yet understand: if AutomapHostsOnResolve is 1, shouldn't
 everything get automapped on resolve?
 >
 > Is it the case that AutomapHostsOnResolve will only work for suffixes in
 options>AutomapHostsSuffix?

 That is what the man page says.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7555#comment:14>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs