-
Notifications
You must be signed in to change notification settings - Fork 20
/
bplist.h
41 lines (36 loc) · 801 Bytes
/
bplist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
struct plist_node
{
int type;
union
{
struct
{
struct plist_nvp** nodes;
int count;
} dict_value;
struct
{
struct plist_node** nodes;
int count;
} array_value;
int boolean_value;
double double_value;
int integer_value;
char* string_value;
struct
{
unsigned char* data;
int length;
} data_value;
} value;
};
typedef struct plist_node plist_node;
struct plist_nvp
{
struct plist_node* key;
struct plist_node* value;
};
typedef struct plist_nvp plist_nvp;
plist_node* parse_bplist(unsigned char* data, int length);
void free_bplist(plist_node* bplist);
void retrieve_encrypted_keys(plist_node* root, unsigned char** param1, unsigned char** param2);