even more verbose debug output
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 29 Sep 2010 22:04:11 +0000 (22:04 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 29 Sep 2010 22:04:11 +0000 (22:04 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@52906 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con_ssl.c

index e35cfda..962a358 100644 (file)
@@ -494,8 +494,8 @@ _ecore_con_ssl_server_init_gnutls(Ecore_Con_Server *svr)
         gnutls_transport_set_ptr(svr->session, (gnutls_transport_ptr_t)svr->fd);
         svr->ssl_state = ECORE_CON_SSL_STATE_HANDSHAKING;
       case ECORE_CON_SSL_STATE_HANDSHAKING:
-        DBG("calling gnutls_handshake()");
         ret = gnutls_handshake(svr->session);
+        DBG("calling gnutls_handshake(): returned with '%s'", gnutls_strerror_name(ret));
         SSL_ERROR_CHECK_GOTO_ERROR(gnutls_error_is_fatal(ret));
         if (!ret)
           {
@@ -505,7 +505,7 @@ _ecore_con_ssl_server_init_gnutls(Ecore_Con_Server *svr)
       default:
         break;
      }
-   if (svr->ssl_state != ECORE_CON_SSL_STATE_DONE)
+   if (svr->ssl_state)
      return ECORE_CON_SSL_ERROR_NONE;
 
    if (!svr->verify)