summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-12 16:39:03 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-12 16:39:03 +0000
commit60880cda84fb98f70e2a70ce073e4803eddd4a1c (patch)
tree185db10e4093e2d98b335e55ba9c84a740065b4f /src/or/or.h
parent2a5bcb29e65510a5161726fa2317997fe2fc615b (diff)
downloadtor-60880cda84fb98f70e2a70ce073e4803eddd4a1c.tar.gz
tor-60880cda84fb98f70e2a70ce073e4803eddd4a1c.zip
Resolve a bunch of FIXME items; mark a lot more for attention; ask for clarification on some. Turn all XXXX008 ("showstopper for 0.0.8 release") items into XXXX009 or XXXX, since plainly they were not showstoppers for 0.0.8. Add/clean some docs.
svn:r2808
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/or.h b/src/or/or.h
index b5cb1b639a..1008fd3499 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -965,6 +965,8 @@ typedef struct {
* hibernate." */
char *HashedControlPassword; /**< Base64-encoded hash of a password for
* the control system. */
+ int CookieAuthentication; /**< Boolean: do we enable cookie-based auth for
+ * the control system? */
} or_options_t;
#define MAX_SOCKS_REPLY_LEN 1024
@@ -1265,7 +1267,7 @@ int control_event_or_conn_status(connection_t *conn, or_conn_status_event_t e);
int control_event_bandwidth_used(uint32_t n_read, uint32_t n_written);
void control_event_logmsg(int severity, const char *msg);
-int init_cookie_authentication(void);
+int init_cookie_authentication(int enabled);
/********************************* cpuworker.c *****************************/
@@ -1281,8 +1283,7 @@ int assign_to_cpuworker(connection_t *cpuworker, unsigned char question_type,
int dir_policy_permits_address(uint32_t addr);
void directory_post_to_dirservers(uint8_t purpose, const char *payload,
size_t payload_len);
-void directory_get_from_dirserver(uint8_t purpose, const char *payload,
- size_t payload_len);
+void directory_get_from_dirserver(uint8_t purpose, const char *resource);
int connection_dir_process_inbuf(connection_t *conn);
int connection_dir_finished_flushing(connection_t *conn);
int connection_dir_finished_connecting(connection_t *conn);