|
Tor 0.4.9.3-alpha-dev
|
Header file for nickname.c. More...
Go to the source code of this file.
Functions | |
| int | is_legal_nickname (const char *s) |
| int | is_legal_nickname_or_hexdigest (const char *s) |
| int | is_legal_hexdigest (const char *s) |
Header file for nickname.c.
Definition in file nickname.h.
| int is_legal_hexdigest | ( | const char * | s | ) |
Return true iff s is a valid hex-encoded identity-key digest. (That is, an optional $, followed by 40 hex characters, followed by either nothing, or = or ~ followed by a nickname, or a character other than =, ~, or a hex character.)
Definition at line 45 of file nickname.c.
Referenced by get_my_declared_family(), is_legal_nickname_or_hexdigest(), nodefamily_from_members(), and routerset_parse().
| int is_legal_nickname | ( | const char * | s | ) |
Return true iff s is a valid server nickname. (That is, a string containing between 1 and MAX_NICKNAME_LEN characters from LEGAL_NICKNAME_CHARACTERS.)
Definition at line 19 of file nickname.c.
Referenced by circuit_list_path_impl(), entry_guard_encode_for_state(), extrainfo_parse_entry_from_string(), is_legal_hexdigest(), is_legal_nickname_or_hexdigest(), nodefamily_from_members(), options_validate_relay_info(), parse_dir_authority_line(), router_parse_entry_from_string(), and routerset_parse().
| int is_legal_nickname_or_hexdigest | ( | const char * | s | ) |
Return true iff s is a valid server nickname or hex-encoded identity-key digest.
Definition at line 31 of file nickname.c.
Referenced by get_my_declared_family(), normalize_nickname_list(), and router_parse_entry_from_string().