tor
master
|
#include <parsecommon.h>
Data Fields | |
directory_keyword | tp |
int | n_args:30 |
char ** | args |
char * | object_type |
size_t | object_size |
char * | object_body |
crypto_pk_t * | key |
char * | error |
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.
char** args |
Array of arguments from keyword line.
char* error |
For ERR_ tokens only.
crypto_pk_t* key |
For public keys only. Heap-allocated.
int n_args |
Number of elements in args
char* object_body |
Contents of object, base64-decoded.
size_t object_size |
Bytes in object_body
char* object_type |
--—BEGIN [object_type]--—
Type of the token.