aboutsummaryrefslogtreecommitdiff
path: root/src/or/ext_orport.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-08-01 11:44:52 -0400
committerNick Mathewson <nickm@torproject.org>2013-08-15 12:03:37 -0400
commit4526c3e0b617bd179bb0728ac2ea438e9a2276ed (patch)
tree9a533b4a54c1699ccb4973fad2bfa3a21a5600c2 /src/or/ext_orport.h
parentb64351ed17f3d30425e1e007de50ef66c2b6c789 (diff)
downloadtor-4526c3e0b617bd179bb0728ac2ea438e9a2276ed.tar
tor-4526c3e0b617bd179bb0728ac2ea438e9a2276ed.tar.gz
Unit test for basic ext_or_cookie authentication backend
Diffstat (limited to 'src/or/ext_orport.h')
-rw-r--r--src/or/ext_orport.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/ext_orport.h b/src/or/ext_orport.h
index 35b92ad63..2d15c18aa 100644
--- a/src/or/ext_orport.h
+++ b/src/or/ext_orport.h
@@ -27,6 +27,14 @@ STATIC int connection_write_ext_or_command(connection_t *conn,
uint16_t command,
const char *body,
size_t bodylen);
+STATIC int handle_client_auth_nonce(const char *client_nonce,
+ size_t client_nonce_len,
+ char **client_hash_out,
+ char **reply_out, size_t *reply_len_out);
+#ifdef TOR_UNIT_TESTS
+extern char ext_or_auth_cookie[];
+extern int ext_or_auth_cookie_is_set;
+#endif
#endif
#endif