Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
ddf3e321
Commit
ddf3e321
authored
16 years ago
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dangerous functions from pulic API.
parent
6d2cd169
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
plist.h
include/plist/plist.h
+1
-5
plist.h
src/plist.h
+3
-0
No files found.
include/plist/plist.h
View file @
ddf3e321
...
...
@@ -49,8 +49,7 @@ typedef enum {
//utilitary functions to create root nodes (supposed to be dict or array)
plist_t
plist_new_dict
();
plist_t
plist_new_array
();
//Plist edition, create a new root if node is NULL
plist_t
plist_add_sub_element
(
plist_t
node
,
plist_type
type
,
const
void
*
value
,
uint64_t
length
);
//Plist edition, only work for dict and array node
void
plist_add_sub_node
(
plist_t
node
,
plist_t
subnode
);
...
...
@@ -72,12 +71,9 @@ plist_t plist_get_next_sibling(plist_t node);
plist_t
plist_get_prev_sibling
(
plist_t
node
);
//utili function to find first (and only the first encountred) corresponding node
plist_t
plist_find_node
(
plist_t
plist
,
plist_type
type
,
const
void
*
value
,
uint64_t
length
);
plist_t
plist_find_node_by_key
(
plist_t
plist
,
const
char
*
value
);
plist_t
plist_find_node_by_string
(
plist_t
plist
,
const
char
*
value
);
void
plist_get_type_and_value
(
plist_t
node
,
plist_type
*
type
,
void
*
value
,
uint64_t
*
length
);
//Plist reading
plist_type
plist_get_node_type
(
plist_t
node
);
...
...
This diff is collapsed.
Click to expand it.
src/plist.h
View file @
ddf3e321
...
...
@@ -57,5 +57,8 @@ plist_data_t plist_new_plist_data();
void
plist_free_plist_data
(
plist_data_t
node
);
uint64_t
plist_get_node_uint_val
(
plist_t
node
);
plist_t
plist_add_sub_element
(
plist_t
node
,
plist_type
type
,
const
void
*
value
,
uint64_t
length
);
plist_t
plist_find_node
(
plist_t
plist
,
plist_type
type
,
const
void
*
value
,
uint64_t
length
);
void
plist_get_type_and_value
(
plist_t
node
,
plist_type
*
type
,
void
*
value
,
uint64_t
*
length
);
#endif
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment