tor/src/core
David Goulet 80f241907c hs-v3: Set extended error if .onion is invalid
In order to achieve this, the parse_extended_hostname() had to be refactored
to return either success or failure and setting the hostname type in the given
parameter.

The reason for that is so it can detect invalid onion addresses that is having
a ".onion", the right length but just not passing validation.

That way, we can send back the prop304 ExtendedError "X'F1' Onion Service
Descriptor Is Invalid" to notify the SOCKS connection of the invalid onion
address.

Part of #30382

Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-11-18 19:06:43 +02:00
..
crypto
mainloop socks: Send back extended error code if set 2019-10-17 08:52:58 -04:00
or hs-v3: Set extended error if .onion is invalid 2019-11-18 19:06:43 +02:00
proto
include.am Rename authcert_members.i to .h, and have it define a macro. 2019-10-16 10:53:01 -04:00