Tor 0.4.9.8
Loading...
Searching...
No Matches
control_auth.h File Reference

Header file for control_auth.c. More...

Go to the source code of this file.

Functions

void control_remove_authenticated_connection (const control_connection_t *conn)
 
int init_control_cookie_authentication (int enabled)
 
char * get_controller_cookie_file_name (void)
 
smartlist_tdecode_hashed_passwords (struct config_line_t *passwords)
 
int handle_control_authchallenge (control_connection_t *conn, const struct control_cmd_args_t *args)
 
int handle_control_authenticate (control_connection_t *conn, const struct control_cmd_args_t *args)
 
void control_auth_free_all (void)
 

Variables

const struct control_cmd_syntax_t authchallenge_syntax
 
const struct control_cmd_syntax_t authenticate_syntax
 

Detailed Description

Header file for control_auth.c.

Definition in file control_auth.h.

Function Documentation

◆ control_auth_free_all()

void control_auth_free_all ( void )

Definition at line 470 of file control_auth.c.

◆ control_remove_authenticated_connection()

void control_remove_authenticated_connection ( const control_connection_t * conn)

Definition at line 44 of file control_auth.c.

◆ decode_hashed_passwords()

smartlist_t * decode_hashed_passwords ( config_line_t * passwords)

Decode the hashed, base64'd passwords stored in passwords. Return a smartlist of acceptable passwords (unterminated strings of length S2K_RFC2440_SPECIFIER_LEN+DIGEST_LEN) on success, or NULL on failure.

Definition at line 119 of file control_auth.c.

Referenced by handle_control_authenticate(), and options_validate_cb().

◆ get_controller_cookie_file_name()

char * get_controller_cookie_file_name ( void )

Helper: Return a newly allocated string containing a path to the file where we store our authentication cookie.

Definition at line 79 of file control_auth.c.

Referenced by get_esc_cfile(), and tor_cleanup().

◆ init_control_cookie_authentication()

int init_control_cookie_authentication ( int enabled)

Definition at line 93 of file control_auth.c.

Variable Documentation

◆ authchallenge_syntax

const struct control_cmd_syntax_t authchallenge_syntax
extern

Definition at line 154 of file control_auth.c.

◆ authenticate_syntax

const struct control_cmd_syntax_t authenticate_syntax
extern

Definition at line 265 of file control_auth.c.