libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ lockdownd_start_session()

lockdownd_error_t lockdownd_start_session ( lockdownd_client_t  client,
const char *  host_id,
char **  session_id,
int *  ssl_enabled 
)

Opens a session with lockdownd and switches to SSL mode if device wants it.

Parameters
clientThe lockdownd client
host_idThe HostID of the computer
session_idThe new session_id of the created session
ssl_enabledWhether SSL communication is used in the session
Returns
LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when a client or host_id is NULL, LOCKDOWN_E_PLIST_ERROR if the response plist had errors, LOCKDOWN_E_INVALID_HOST_ID if the device does not know the supplied HostID, LOCKDOWN_E_SSL_ERROR if enabling SSL communication failed