Tor
0.4.7.0-alpha-dev
feature
control
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-2021, 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
15
struct
control_cmd_args_t
;
16
struct
control_cmd_syntax_t
;
17
18
int
init_control_cookie_authentication(
int
enabled);
19
char
*
get_controller_cookie_file_name
(
void
);
20
struct
config_line_t
;
21
smartlist_t
*
decode_hashed_passwords
(
struct
config_line_t
*passwords);
22
23
int
handle_control_authchallenge
(
control_connection_t
*conn,
24
const
struct
control_cmd_args_t
*args);
25
int
handle_control_authenticate
(
control_connection_t
*conn,
26
const
struct
control_cmd_args_t
*args);
27
void
control_auth_free_all(
void
);
28
29
extern
const
struct
control_cmd_syntax_t
authchallenge_syntax;
30
extern
const
struct
control_cmd_syntax_t
authenticate_syntax;
31
32
#endif
/* !defined(TOR_CONTROL_AUTH_H) */
handle_control_authchallenge
int handle_control_authchallenge(control_connection_t *conn, const control_cmd_args_t *args)
Definition:
control_auth.c:133
handle_control_authenticate
int handle_control_authenticate(control_connection_t *conn, const control_cmd_args_t *args)
Definition:
control_auth.c:246
get_controller_cookie_file_name
char * get_controller_cookie_file_name(void)
Definition:
control_auth.c:48
decode_hashed_passwords
smartlist_t * decode_hashed_passwords(struct config_line_t *passwords)
Definition:
control_auth.c:88
config_line_t
Definition:
confline.h:29
control_cmd_args_t
Definition:
control_cmd_args_st.h:24
control_cmd_syntax_t
Definition:
control_cmd.h:36
control_connection_t
Definition:
control_connection_st.h:19
smartlist_t
Definition:
smartlist_core.h:26
Generated by
1.9.1