From 65346c9ddd92e6ea3650040d791a411b9ac308af Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 13 Jan 2010 00:10:03 +0100 Subject: Move SSL code into iphone.c/iphone.h --- src/iphone.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/iphone.h') diff --git a/src/iphone.h b/src/iphone.h index 51f9c9d..2755349 100644 --- a/src/iphone.h +++ b/src/iphone.h @@ -30,9 +30,16 @@ enum connection_type { CONNECTION_USBMUXD = 1 }; +struct ssl_data_int { + gnutls_certificate_credentials_t certificate; + gnutls_session_t session; +}; +typedef struct ssl_data_int *ssl_data_t; + struct iphone_connection_int { enum connection_type type; void *data; + ssl_data_t ssl_data; }; struct iphone_device_int { @@ -41,4 +48,7 @@ struct iphone_device_int { void *conn_data; }; +iphone_error_t iphone_connection_enable_ssl(iphone_connection_t connection); +iphone_error_t iphone_connection_disable_ssl(iphone_connection_t connection); + #endif -- cgit v1.1-32-gdbae