-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0867303
commit 98723c3
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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); |