Enlightenment CVS committal Author : englebass Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_con Modified Files: Ecore_Con.h ecore_con.c Log Message: Add support for TLS =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_con/Ecore_Con.h,v retrieving revision 1.33 retrieving revision 1.34 diff -u -3 -r1.33 -r1.34 --- Ecore_Con.h 8 Jan 2008 21:06:43 -0000 1.33 +++ Ecore_Con.h 8 Jan 2008 21:28:51 -0000 1.34 @@ -75,7 +75,8 @@ ECORE_CON_LOCAL_ABSTRACT, ECORE_CON_REMOTE_SYSTEM, ECORE_CON_USE_SSL2 = (1 << 4), - ECORE_CON_USE_SSL3 = (1 << 5) + ECORE_CON_USE_SSL3 = (1 << 5), + ECORE_CON_USE_TLS = (1 << 6) } Ecore_Con_Type; #define ECORE_CON_USE_SSL ECORE_CON_USE_SSL2 =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_con/ecore_con.c,v retrieving revision 1.89 retrieving revision 1.90 diff -u -3 -r1.89 -r1.90 --- ecore_con.c 8 Jan 2008 21:06:43 -0000 1.89 +++ ecore_con.c 8 Jan 2008 21:28:51 -0000 1.90 @@ -334,6 +334,10 @@ if (!(svr->ssl_ctx = SSL_CTX_new(SSLv3_client_method()))) goto error; break; + case ECORE_CON_USE_TLS: + if (!(svr->ssl_ctx = SSL_CTX_new(TLSv1_client_method()))) + goto error; + break; } if (!(svr->ssl = SSL_new(svr->ssl_ctx))) @@ -1190,6 +1194,10 @@ break; case ECORE_CON_USE_SSL3: if (!(svr->ssl_ctx = SSL_CTX_new(SSLv3_client_method()))) + goto error; + break; + case ECORE_CON_USE_TLS: + if (!(svr->ssl_ctx = SSL_CTX_new(TLSv1_client_method()))) goto error; break; } ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs