summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2012-02-06 10:49:45 -0800
committerRobert Ransom <rransom.8774@gmail.com>2012-02-22 05:46:09 -0800
commite111e371b4f44456182e7f237837a0f9466487cd (patch)
tree5a3e8fe4de78cf9a812f7b1fb64b69bd93b2872c /src/or/or.h
parenta5704b1c624c9a808f52f3a125339f00e2b9a378 (diff)
downloadtor-e111e371b4f44456182e7f237837a0f9466487cd.tar.gz
tor-e111e371b4f44456182e7f237837a0f9466487cd.zip
Implement 'safe cookie authentication'
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index c0714ee4c6..eecd3750a9 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1254,6 +1254,12 @@ typedef struct control_connection_t {
* connection. */
unsigned int is_owning_control_connection:1;
+ /** If we have sent an AUTHCHALLENGE reply on this connection and
+ * have not received a successful AUTHENTICATE command, points to
+ * the value which the client must send to authenticate itself;
+ * otherwise, NULL. */
+ char *safecookie_client_hash;
+
/** Amount of space allocated in incoming_cmd. */
uint32_t incoming_cmd_len;
/** Number of bytes currently stored in incoming_cmd. */