diff options
| author | 2015-01-26 21:31:47 +0100 | |
|---|---|---|
| committer | 2015-01-27 22:01:22 +0100 | |
| commit | fddc0a9fa6a849b9afdda20060f3c9926d2b3935 (patch) | |
| tree | f2eceba90907a7e19c6cde741e32d665776baf43 /src/idevice.c | |
| parent | f88d37c830e35df4594c30968c08c16db8392e9e (diff) | |
| download | libimobiledevice-fddc0a9fa6a849b9afdda20060f3c9926d2b3935.tar.gz libimobiledevice-fddc0a9fa6a849b9afdda20060f3c9926d2b3935.tar.bz2 | |
idevice: Rename generic errorstring() into ssl_error_to_string()
Diffstat (limited to 'src/idevice.c')
| -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 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 |
| 597 | static const char *errorstring(int e) | 597 | static 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 { |
