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
c9adedcc
Commit
c9adedcc
authored
Jul 30, 2008
by
Martin Aumueller
Committed by
Matt Colyer
Jul 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ifuse_init has to return a void* (fuse 2.7.2 on hardy heron)
Signed-off-by:
Matt Colyer
<
matt@colyer.name
>
parent
2a406b92
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
ifuse.c
src/ifuse.c
+8
-6
No files found.
src/ifuse.c
View file @
c9adedcc
...
...
@@ -17,7 +17,7 @@
#include "AFC.h"
AFClient
*
afc
;
AFClient
*
afc
=
NULL
;
GHashTable
*
file_handles
;
int
fh_index
=
0
;
...
...
@@ -85,7 +85,7 @@ static int ifuse_read(const char *path, char *buf, size_t size, off_t offset,
return
bytes
;
}
void
ifuse_init
(
struct
fuse_conn_info
*
conn
)
{
void
*
ifuse_init
(
struct
fuse_conn_info
*
conn
)
{
char
*
response
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
2048
);
int
bytes
=
0
,
port
=
0
,
i
=
0
;
...
...
@@ -94,27 +94,29 @@ void ifuse_init(struct fuse_conn_info *conn) {
iPhone
*
phone
=
get_iPhone
();
if
(
!
phone
){
fprintf
(
stderr
,
"No iPhone found, is it connected?
\n
"
);
return
-
1
;
return
NULL
;
}
lockdownd_client
*
control
=
new_lockdownd_client
(
phone
);
if
(
!
lockdownd_hello
(
control
))
{
fprintf
(
stderr
,
"Something went wrong in the lockdownd client.
\n
"
);
return
-
1
;
return
NULL
;
}
//if (!lockdownd_start_SSL_session(control, "29942970-207913891623273984")) {
fprintf
(
stderr
,
"Something went wrong in GnuTLS.
\n
"
);
return
-
1
;
return
NULL
;
}
port
=
lockdownd_start_service
(
control
,
"com.apple.afc"
);
if
(
!
port
)
{
fprintf
(
stderr
,
"Something went wrong when starting AFC."
);
return
NULL
;
}
afc
=
afc_connect
(
phone
,
3432
,
port
);
return
afc
;
}
void
ifuse_cleanup
()
{
...
...
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