Tor
0.4.7.0-alpha-dev
|
Header file for control_auth.c. More...
Go to the source code of this file.
Functions | |
int | init_control_cookie_authentication (int enabled) |
char * | get_controller_cookie_file_name (void) |
smartlist_t * | decode_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 |
Header file for control_auth.c.
Definition in file control_auth.h.
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.
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().