fix cert flag detection

SVN revision: 66081
This commit is contained in:
Mike Blumenkrantz 2011-12-10 08:09:17 +00:00
parent 55b8fcf727
commit c5b0df352e
2 changed files with 6 additions and 3 deletions

View File

@ -390,3 +390,7 @@
* Allow SSL certificates to be loaded for STARTTLS
* Added functions to set/get the hostname used for SSL certificate verification
* ecore_con_ssl_server_cafile_add() now accepts directories
2011-12-10 Mike Blumenkrantz
* Fix case where SSL certificates would not be used

View File

@ -308,8 +308,7 @@ ecore_con_server_add(Ecore_Con_Type compl_type,
svr->port = port;
svr->data = (void *)data;
svr->created = EINA_TRUE;
if (compl_type & ECORE_CON_LOAD_CERT)
svr->use_cert = EINA_TRUE;
svr->use_cert = (compl_type & ECORE_CON_SSL & ECORE_CON_LOAD_CERT) == ECORE_CON_LOAD_CERT;
svr->reject_excess_clients = EINA_FALSE;
svr->client_limit = -1;
svr->clients = NULL;
@ -402,7 +401,7 @@ ecore_con_server_connect(Ecore_Con_Type compl_type,
svr->port = port;
svr->data = (void *)data;
svr->created = EINA_FALSE;
svr->use_cert = (compl_type & ECORE_CON_LOAD_CERT);
svr->use_cert = (compl_type & ECORE_CON_SSL & ECORE_CON_LOAD_CERT) == ECORE_CON_LOAD_CERT;
svr->reject_excess_clients = EINA_FALSE;
svr->clients = NULL;
svr->client_limit = -1;