diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-03-26 16:41:07 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-03-26 16:41:07 +0200 |
commit | 989b6325d671744aacec191b181e8b0b0fee35be (patch) | |
tree | 91a802ee2d2745c2dacdbf52e00edcde3cd668a6 /src/feature/control/control_auth.h | |
parent | e028ec6bb7a97596496cc44f21c83ff56d8d55c9 (diff) | |
parent | b71febcea809f154f65e6e00825724b3fbeccb10 (diff) | |
download | tor-989b6325d671744aacec191b181e8b0b0fee35be.tar.gz tor-989b6325d671744aacec191b181e8b0b0fee35be.zip |
Merge branch 'tor-github/pr/842'
Diffstat (limited to 'src/feature/control/control_auth.h')
-rw-r--r-- | src/feature/control/control_auth.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/feature/control/control_auth.h b/src/feature/control/control_auth.h new file mode 100644 index 0000000000..f436482e4a --- /dev/null +++ b/src/feature/control/control_auth.h @@ -0,0 +1,27 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2019, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * \file control_auth.h + * \brief Header file for control_auth.c. + **/ + +#ifndef TOR_CONTROL_AUTH_H +#define TOR_CONTROL_AUTH_H + +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_authenticate(control_connection_t *conn, + uint32_t cmd_data_len, + const char *args); +void control_auth_free_all(void); + +#endif /* !defined(TOR_CONTROL_AUTH_H) */ |