aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control/control_auth.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/control/control_auth.h')
-rw-r--r--src/feature/control/control_auth.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/feature/control/control_auth.h b/src/feature/control/control_auth.h
index f436482e4a..246e18ccbc 100644
--- a/src/feature/control/control_auth.h
+++ b/src/feature/control/control_auth.h
@@ -12,16 +12,21 @@
#ifndef TOR_CONTROL_AUTH_H
#define TOR_CONTROL_AUTH_H
+struct control_cmd_args_t;
+struct control_cmd_syntax_t;
+
int init_control_cookie_authentication(int enabled);
char *get_controller_cookie_file_name(void);
struct config_line_t;
smartlist_t *decode_hashed_passwords(struct config_line_t *passwords);
-int handle_control_authchallenge(control_connection_t *conn, uint32_t len,
- const char *body);
+int handle_control_authchallenge(control_connection_t *conn,
+ const struct control_cmd_args_t *args);
int handle_control_authenticate(control_connection_t *conn,
- uint32_t cmd_data_len,
- const char *args);
+ const struct control_cmd_args_t *args);
void control_auth_free_all(void);
+extern const struct control_cmd_syntax_t authchallenge_syntax;
+extern const struct control_cmd_syntax_t authenticate_syntax;
+
#endif /* !defined(TOR_CONTROL_AUTH_H) */