Pull suppression of "error in read client cert A" from 1.1.x
authoraland <aland>
Tue, 15 May 2007 09:56:26 +0000 (09:56 +0000)
committeraland <aland>
Tue, 15 May 2007 09:56:26 +0000 (09:56 +0000)
src/modules/rlm_eap/libeap/cb.c

index abf1444..ef8d74b 100644 (file)
@@ -53,10 +53,16 @@ void cbtls_info(const SSL *s, int where, int ret)
                        SSL_alert_type_string_long(ret),
                        SSL_alert_desc_string_long(ret));
        } else if (where & SSL_CB_EXIT) {
-               if (ret == 0)
+               if (ret == 0) {
                        radlog(L_ERR, "%s:failed in %s\n", str, state);
-               else if (ret < 0)
-                       radlog(L_ERR, "%s:error in %s\n", str, state);
+               } else if (ret < 0) {
+                       if (SSL_want_read(s)) {
+                               DEBUG2("%s: Need to read more data: %s",
+                                      str, state);
+                       } else {
+                               radlog(L_ERR, "%s:error in %s\n", str, state);
+                       }
+               }
        }
 }