|
static void | scan_bencoding_token (struct scanner *scanner, struct scanner_token *token) |
static void | skip_bencoding_tokens (struct scanner *scanner) |
static struct scanner_token * | scan_bencoding_tokens (struct scanner *scanner) |
enum bencoding_token | check_bencoding_dictionary_entry (struct scanner *scanner, struct scanner_token **value_ptr) |
static off_t | parse_bencoding_integer (struct scanner_token *token) |
static char * | normalize_bencoding_path (const char *path, int pathlen, int *malicious) |
static enum bittorrent_state | add_bittorrent_file (struct bittorrent_meta *meta, char *path, struct bittorrent_file *template_) |
static enum bittorrent_state | parse_bencoding_file_path (struct scanner *scanner, struct string *path) |
static enum bittorrent_state | parse_bencoding_file_dictionary (struct bittorrent_meta *meta, struct scanner *scanner, struct string *path) |
static enum bittorrent_state | parse_bencoding_files_list (struct bittorrent_meta *meta, struct scanner *scanner) |
static enum bittorrent_state | parse_bencoding_info_dictionary (struct bittorrent_meta *meta, struct scanner *scanner) |
static enum bittorrent_state | check_bittorrent_metafile (struct bittorrent_meta *meta) |
enum bittorrent_state | parse_bittorrent_metafile (struct bittorrent_meta *meta, struct bittorrent_const_string *metafile) |
static enum bittorrent_state | parse_bencoding_peer_dictionary (struct bittorrent_connection *bittorrent, struct scanner *scanner) |
static enum bittorrent_state | parse_bencoding_peers_list (struct bittorrent_connection *bittorrent, struct scanner *scanner) |
static enum bittorrent_state | parse_bencoding_peers_string (struct bittorrent_connection *bittorrent, struct scanner *scanner) |
enum bittorrent_state | parse_bittorrent_tracker_response (struct bittorrent_connection *bittorrent, struct bittorrent_const_string *response) |