summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-01-26 21:31:47 +0100
committerGravatar Martin Szulecki2015-01-27 22:01:22 +0100
commitfddc0a9fa6a849b9afdda20060f3c9926d2b3935 (patch)
treef2eceba90907a7e19c6cde741e32d665776baf43
parentf88d37c830e35df4594c30968c08c16db8392e9e (diff)
downloadlibimobiledevice-fddc0a9fa6a849b9afdda20060f3c9926d2b3935.tar.gz
libimobiledevice-fddc0a9fa6a849b9afdda20060f3c9926d2b3935.tar.bz2
idevice: Rename generic errorstring() into ssl_error_to_string()
-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)
}
#ifndef STRIP_DEBUG_CODE
-static const char *errorstring(int e)
+static const char *ssl_error_to_string(int e)
{
switch(e) {
case SSL_ERROR_NONE:
@@ -719,7 +719,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_enable_ssl(idevice_conne
return_me = SSL_do_handshake(ssl);
if (return_me != 1) {
- debug_info("ERROR in SSL_do_handshake: %s", errorstring(SSL_get_error(ssl, return_me)));
+ debug_info("ERROR in SSL_do_handshake: %s", ssl_error_to_string(SSL_get_error(ssl, return_me)));
SSL_free(ssl);
SSL_CTX_free(ssl_ctx);
} else {