summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-30 03:44:10 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-30 03:44:10 +0000
commitc8abe1907dfaa0f2a5038e63ab57a2e641b519f7 (patch)
tree7324a18b0cf73bf46657b854287a03e6f03f3820 /src/or/or.h
parentebab451eedf543ab2f9545fe80f43c0fefbe7862 (diff)
downloadtor-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.h5
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 ***************************/