add returns for later certificate checking
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 30 Sep 2010 01:53:23 +0000 (01:53 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 30 Sep 2010 01:53:23 +0000 (01:53 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@52916 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con_ssl.c

index 56ea5eb..ba9929c 100644 (file)
@@ -1032,9 +1032,10 @@ _ecore_con_ssl_server_init_openssl(Ecore_Con_Server *svr)
         else
           {
              if (err == SSL_ERROR_WANT_READ)
-                ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_READ);
+               ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_READ);
              else if (err == SSL_ERROR_WANT_WRITE)
-                ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_WRITE);
+               ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_WRITE);
+             return ECORE_CON_SSL_ERROR_NONE;
           }
       default:
         break;
@@ -1274,6 +1275,7 @@ _ecore_con_ssl_client_init_openssl(Ecore_Con_Client *cl)
                 ecore_main_fd_handler_active_set(cl->fd_handler, ECORE_FD_READ);
              else if (err == SSL_ERROR_WANT_WRITE)
                 ecore_main_fd_handler_active_set(cl->fd_handler, ECORE_FD_WRITE);
+             return ECORE_CON_SSL_ERROR_NONE;
           }
       default:
         break;