diff options
author | Martin Szulecki | 2014-03-21 20:03:16 +0100 |
---|---|---|
committer | Martin Szulecki | 2014-03-21 20:03:16 +0100 |
commit | dbede29466197702c58b806f356f1fa26223d68a (patch) | |
tree | 5c0a66a52c167ffaf82213773f98573735416feb | |
parent | 74f83d758e041c26a2494f807e08d145cef94936 (diff) | |
download | libimobiledevice-dbede29466197702c58b806f356f1fa26223d68a.tar.gz libimobiledevice-dbede29466197702c58b806f356f1fa26223d68a.tar.bz2 |
idevice: Fix misleading warning in GnuTLS SSL handshake
-rw-r--r-- | src/idevice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevice.c b/src/idevice.c index dce4b41..593a2ae 100644 --- a/src/idevice.c +++ b/src/idevice.c @@ -761,8 +761,8 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection) /* Set up GnuTLS... */ debug_info("enabling SSL mode"); - errno = 0; gnutls_global_init(); + errno = 0; gnutls_certificate_allocate_credentials(&ssl_data_loc->certificate); gnutls_certificate_client_set_retrieve_function(ssl_data_loc->certificate, internal_cert_callback); gnutls_init(&ssl_data_loc->session, GNUTLS_CLIENT); @@ -791,7 +791,7 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection) gnutls_transport_set_pull_function(ssl_data_loc->session, (gnutls_pull_func) & internal_ssl_read); debug_info("GnuTLS step 4 -- now handshaking..."); if (errno) { - debug_info("WARN: errno says %s before handshake!", strerror(errno)); + debug_info("WARNING: errno says %s before handshake!", strerror(errno)); } return_me = gnutls_handshake(ssl_data_loc->session); debug_info("GnuTLS handshake done..."); |