Functions | Variables
control_auth.h File Reference

Header file for control_auth.c. More...

Go to the source code of this file.


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)


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 436 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 88 of file control_auth.c.

◆ 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 48 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 62 of file control_auth.c.

Variable Documentation

◆ authchallenge_syntax

const struct control_cmd_syntax_t authchallenge_syntax

Definition at line 123 of file control_auth.c.

◆ authenticate_syntax

const struct control_cmd_syntax_t authenticate_syntax

Definition at line 234 of file control_auth.c.