From 4526c3e0b617bd179bb0728ac2ea438e9a2276ed Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 1 Aug 2013 11:44:52 -0400 Subject: Unit test for basic ext_or_cookie authentication backend --- src/or/ext_orport.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/or/ext_orport.h') 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 -- cgit v1.2.3