summaryrefslogtreecommitdiffstats
path: root/src/idevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idevice.c')
-rw-r--r--src/idevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevice.c b/src/idevice.c
index 367eb0f..c73c21b 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -594,7 +594,7 @@ static int ssl_verify_callback(int ok, X509_STORE_CTX *ctx)
594} 594}
595 595
596#ifndef STRIP_DEBUG_CODE 596#ifndef STRIP_DEBUG_CODE
597static const char *errorstring(int e) 597static const char *ssl_error_to_string(int e)
598{ 598{
599 switch(e) { 599 switch(e) {
600 case SSL_ERROR_NONE: 600 case SSL_ERROR_NONE:
@@ -719,7 +719,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
719 719
720 return_me = SSL_do_handshake(ssl); 720 return_me = SSL_do_handshake(ssl);
721 if (return_me != 1) { 721 if (return_me != 1) {
722 debug_info("ERROR in SSL_do_handshake: %s", errorstring(SSL_get_error(ssl, return_me))); 722 debug_info("ERROR in SSL_do_handshake: %s", ssl_error_to_string(SSL_get_error(ssl, return_me)));
723 SSL_free(ssl); 723 SSL_free(ssl);
724 SSL_CTX_free(ssl_ctx); 724 SSL_CTX_free(ssl_ctx);
725 } else { 725 } else {