summaryrefslogtreecommitdiff
path: root/src/or/rendclient.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-29 08:34:54 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-29 08:34:54 +0000
commitc1dc17e6e2f194d8c7078218be96cb96b9aaa6bd (patch)
tree12d5e4d5f40c8f5655e6a2e12ac558fa74c4edb6 /src/or/rendclient.c
parent4effabd72d7151b2fe943f981c435467da9d33cf (diff)
downloadtor-c1dc17e6e2f194d8c7078218be96cb96b9aaa6bd.tar.gz
tor-c1dc17e6e2f194d8c7078218be96cb96b9aaa6bd.zip
put in initial support for ".nickname.exit" addresses, to let alice
decide what exit node to use; based on a patch by geoff goodell. needs more work: e.g. it goes bananas building new circuits when the chosen exit node's exit policy rejects the connection. svn:r3015
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r--src/or/rendclient.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index d89c3ba7c5..c4fe53fb7f 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -439,30 +439,3 @@ char *rend_client_get_random_intro(char *query) {
return nickname;
}
-/** If address is of the form "y.onion" with a well-formed handle y,
- * then put a '\0' after y, lower-case it, and return 0.
- * Else return -1 and change nothing.
- */
-int rend_parse_rendezvous_address(char *address) {
- char *s;
- char query[REND_SERVICE_ID_LEN+1];
-
- s = strrchr(address,'.');
- if (!s) return -1; /* no dot */
- if (strcasecmp(s+1,"onion"))
- return -1; /* not .onion */
-
- *s = 0; /* null terminate it */
- if (strlcpy(query, address, REND_SERVICE_ID_LEN+1) >= REND_SERVICE_ID_LEN+1)
- goto failed;
- tor_strlower(query);
- if (rend_valid_service_id(query)) {
- tor_strlower(address);
- return 0; /* success */
- }
-failed:
- /* otherwise, return to previous state and return -1 */
- *s = '.';
- return -1;
-}
-