Tor 0.5.0.0-alpha-dev
Loading...
Searching...
No Matches
Data Fields
directory_token_t Struct Reference

#include <parsecommon.h>

Data Fields

directory_keyword tp
 
int n_args:30
 
char ** args
 
char * object_type
 
size_t object_size
 
char * object_body
 
struct crypto_pk_tkey
 
char * error
 

Detailed Description

Structure to hold a single directory token.

We parse a directory by breaking it into "tokens", each consisting of a keyword, a line full of arguments, and a binary object. The arguments and object are both optional, depending on the keyword type.

This structure is only allocated in memareas; do not allocate it on the heap, or token_clear() won't work.

Definition at line 205 of file parsecommon.h.

Field Documentation

◆ args

char** args

◆ error

char* error

For ERR_ tokens only.

Definition at line 216 of file parsecommon.h.

Referenced by router_parse_addr_policy_item_from_string(), and tokenize_string().

◆ key

struct crypto_pk_t* key

◆ n_args

int n_args

◆ object_body

char* object_body

◆ object_size

size_t object_size

◆ object_type

char* object_type

◆ tp


The documentation for this struct was generated from the following file: