summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-10-01 00:43:34 +0000
committerNick Mathewson <nickm@torproject.org>2003-10-01 00:43:34 +0000
commitdf5c7534b1c127d799da43a96307c76282d5e348 (patch)
treedaa30d2929077ff33740a78a655e28ce6b0bca9d /src/or/or.h
parentf694ab23f57fe73534e75b6ffae3de00491008ee (diff)
downloadtor-df5c7534b1c127d799da43a96307c76282d5e348.tar.gz
tor-df5c7534b1c127d799da43a96307c76282d5e348.zip
Move dirserv/routers code out of main.c
svn:r527
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h
index c44b780e4d..b739eadcd9 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -616,6 +616,7 @@ void set_onion_key(crypto_pk_env_t *k);
crypto_pk_env_t *get_onion_key(void);
void set_identity_key(crypto_pk_env_t *k);
crypto_pk_env_t *get_identity_key(void);
+crypto_pk_env_t *get_link_key(void);
int connection_add(connection_t *conn);
int connection_remove(connection_t *conn);
void connection_set_poll_socket(connection_t *conn);
@@ -629,8 +630,6 @@ void connection_start_reading(connection_t *conn);
void connection_stop_writing(connection_t *conn);
void connection_start_writing(connection_t *conn);
-int list_running_servers(char **nicknames_out);
-
const char *router_get_my_descriptor(void);
int main(int argc, char *argv[]);
@@ -691,6 +690,10 @@ int router_get_dir_from_string_impl(char *s, directory_t **dest,
routerinfo_t *router_get_entry_from_string(char **s);
int router_compare_to_exit_policy(connection_t *conn);
void routerinfo_free(routerinfo_t *router);
+int router_dump_router_to_string(char *s, int maxlen, routerinfo_t *router,
+ crypto_pk_env_t *ident_key);
+const routerinfo_t *router_get_desc_routerinfo(void);
+const char *router_get_my_descriptor(void);
/********************************* dirserv.c ***************************/
int dirserv_add_own_fingerprint(const char *nickname, crypto_pk_env_t *pk);