]> granicus.if.org Git - curl/commitdiff
better error output on SSL errors when receiving data - Georg Horn patch
authorDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2003 17:38:51 +0000 (17:38 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2003 17:38:51 +0000 (17:38 +0000)
CHANGES
lib/sendf.c

diff --git a/CHANGES b/CHANGES
index 00347d924f88a11a558576e0085e91ffa7084cb1..48e86970dec0a8201eaf44a4069de4844d390444 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,10 @@
                                   Changelog
 
 
+Daniel (19 October)
+- Georg Horn made libcurl output more info on SSL failures when receiving
+  data.
+
 Version 7.10.8-pre4 (18 October 2003)
 
 Daniel (17 October)
index 76e01393ef9a0c5fd43df2deab64a3b4aa13350a..41f3092364a29f358443098a83e8f990b5277e9e 100644 (file)
@@ -383,19 +383,16 @@ int Curl_read(struct connectdata *conn,
       case SSL_ERROR_WANT_WRITE:
         /* there's data pending, re-invoke SSL_read() */
         return -1; /* basicly EWOULDBLOCK */
-      case SSL_ERROR_SYSCALL:
-        /* openssl/ssl.h says "look at error stack/return value/errno" */
-      {
-        char error_buffer[120]; /* OpenSSL documents that this must be at least
-                                   120 bytes long. */
-        int sslerror = ERR_get_error();
-        failf(conn->data, "SSL read: %s, errno %d",
-              ERR_error_string(sslerror, error_buffer),
-              Curl_ourerrno() );
-      }
-      return CURLE_RECV_ERROR;
       default:
-        failf(conn->data, "SSL read error: %d", err);
+        /* openssl/ssl.h says "look at error stack/return value/errno" */
+        {
+          char error_buffer[120]; /* OpenSSL documents that this must be at
+                                     least 120 bytes long. */
+          int sslerror = ERR_get_error();
+          failf(conn->data, "SSL read: %s, errno %d",
+                ERR_error_string(sslerror, error_buffer),
+                Curl_ourerrno() );
+        }
         return CURLE_RECV_ERROR;
       }
     }