Tor 0.4.9.2-alpha-dev
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
control_auth.h
Go to the documentation of this file.
1/* Copyright (c) 2001 Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2024, The Tor Project, Inc. */
5/* See LICENSE for licensing information */
6
7/**
8 * \file control_auth.h
9 * \brief Header file for control_auth.c.
10 **/
11
12#ifndef TOR_CONTROL_AUTH_H
13#define TOR_CONTROL_AUTH_H
14
15void control_remove_authenticated_connection(const control_connection_t *conn);
16
19
20int init_control_cookie_authentication(int enabled);
22struct config_line_t;
24
26 const struct control_cmd_args_t *args);
28 const struct control_cmd_args_t *args);
29void control_auth_free_all(void);
30
31extern const struct control_cmd_syntax_t authchallenge_syntax;
32extern const struct control_cmd_syntax_t authenticate_syntax;
33
34#endif /* !defined(TOR_CONTROL_AUTH_H) */
int handle_control_authchallenge(control_connection_t *conn, const control_cmd_args_t *args)
Definition: control_auth.c:164
int handle_control_authenticate(control_connection_t *conn, const control_cmd_args_t *args)
Definition: control_auth.c:277
char * get_controller_cookie_file_name(void)
Definition: control_auth.c:79
smartlist_t * decode_hashed_passwords(struct config_line_t *passwords)
Definition: control_auth.c:119