From 8b1af4cf80eff619d3465925dce7fe572fc09224 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 14 Sep 2011 18:55:59 +0200 Subject: Add OpenSSL support --- src/idevice.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/idevice.h') diff --git a/src/idevice.h b/src/idevice.h index 231b3ab..65fdae0 100644 --- a/src/idevice.h +++ b/src/idevice.h @@ -21,8 +21,18 @@ #ifndef IDEVICE_H #define IDEVICE_H +#ifdef HAVE_CONFIG_H +#include +#endif + +#ifdef HAVE_OPENSSL +#include +#else #include #include +#endif + +#include "userpref.h" #include "libimobiledevice/libimobiledevice.h" @@ -31,12 +41,18 @@ enum connection_type { }; struct ssl_data_private { +#ifdef HAVE_OPENSSL + SSL *session; + SSL_CTX *ctx; + BIO *bio; +#else gnutls_certificate_credentials_t certificate; gnutls_session_t session; gnutls_x509_privkey_t root_privkey; gnutls_x509_crt_t root_cert; gnutls_x509_privkey_t host_privkey; gnutls_x509_crt_t host_cert; +#endif }; typedef struct ssl_data_private *ssl_data_t; -- cgit v1.1-32-gdbae