diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-30 03:44:10 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-30 03:44:10 +0000 |
commit | c8abe1907dfaa0f2a5038e63ab57a2e641b519f7 (patch) | |
tree | 7324a18b0cf73bf46657b854287a03e6f03f3820 /src/or/or.h | |
parent | ebab451eedf543ab2f9545fe80f43c0fefbe7862 (diff) | |
download | tor-c8abe1907dfaa0f2a5038e63ab57a2e641b519f7.tar.gz tor-c8abe1907dfaa0f2a5038e63ab57a2e641b519f7.zip |
Rename parse_address to parse_extended_hostname (since we have other kinds of addresses); make its output an enum; support HEXDIGEST.exit hostnames.
svn:r3029
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 47eec972ad..11062f10c4 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1236,7 +1236,10 @@ int client_dns_incr_failures(const char *address); void client_dns_set_entry(const char *address, uint32_t val); void client_dns_clean(void); void set_exit_redirects(smartlist_t *lst); -int parse_address(char *address); +typedef enum hostname_type_t { + NORMAL_HOSTNAME, ONION_HOSTNAME, EXIT_HOSTNAME +} hostname_type_t; +hostname_type_t parse_extended_hostname(char *address); /********************************* connection_or.c ***************************/ |