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
0bca81e7
Commit
0bca81e7
authored
Aug 31, 2008
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output binary data base64 encoded (and 60 cols wide)
parent
f4c4b783
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
plutil.c
dev/plutil.c
+9
-2
No files found.
dev/plutil.c
View file @
0bca81e7
...
@@ -45,13 +45,20 @@ void print_nodes(bplist_node *root_node) {
...
@@ -45,13 +45,20 @@ void print_nodes(bplist_node *root_node) {
break
;
break
;
case
BPLIST_STRING
:
case
BPLIST_STRING
:
case
BPLIST_DATA
:
printf
(
"String: "
);
printf
(
"String/data: "
);
fwrite
(
root_node
->
strval
,
sizeof
(
char
),
root_node
->
length
,
stdout
);
fwrite
(
root_node
->
strval
,
sizeof
(
char
),
root_node
->
length
,
stdout
);
fflush
(
stdout
);
fflush
(
stdout
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
break
;
break
;
case
BPLIST_DATA
:
printf
(
"Data: "
);
char
*
data
=
g_base64_encode
(
root_node
->
strval
,
root_node
->
length
);
fwrite
(
format_string
(
data
,
60
,
0
),
sizeof
(
char
),
strlen
(
data
),
stdout
);
fflush
(
stdout
);
printf
(
"
\n
"
);
break
;
case
BPLIST_UNICODE
:
case
BPLIST_UNICODE
:
printf
(
"Unicode data, may appear crappy: "
);
printf
(
"Unicode data, may appear crappy: "
);
fwrite
(
root_node
->
unicodeval
,
sizeof
(
wchar_t
),
root_node
->
length
,
stdout
);
fwrite
(
root_node
->
unicodeval
,
sizeof
(
wchar_t
),
root_node
->
length
,
stdout
);
...
...
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