From c051fb430e5ad6b652ca92949757b16fdc2e971b Mon Sep 17 00:00:00 2001 From: raster Date: Sat, 18 Sep 2010 11:41:15 +0000 Subject: [PATCH] dont use tls max if it doesnt exist eh? git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@52413 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_con/ecore_con_ssl.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_con/ecore_con_ssl.c b/src/lib/ecore_con/ecore_con_ssl.c index daa288f..e259461 100644 --- a/src/lib/ecore_con/ecore_con_ssl.c +++ b/src/lib/ecore_con/ecore_con_ssl.c @@ -303,7 +303,16 @@ _ecore_con_ssl_server_init_gnutls(Ecore_Con_Server *svr) #endif 0 }; - const int mixed_proto[] = { GNUTLS_VERSION_MAX, GNUTLS_TLS1_1, GNUTLS_TLS1_0, GNUTLS_SSL3, 0 }; + const int mixed_proto[] = + { +#ifdef GNUTLS_VERSION_MAX + GNUTLS_VERSION_MAX, +#endif + GNUTLS_TLS1_1, + GNUTLS_TLS1_0, + GNUTLS_SSL3, + 0 + }; switch (svr->type & ECORE_CON_SSL) { @@ -497,7 +506,15 @@ _ecore_con_ssl_client_init_gnutls(Ecore_Con_Client *cl) #endif 0 }; - const int mixed_proto[] = { GNUTLS_VERSION_MAX, GNUTLS_TLS1_1, GNUTLS_TLS1_0, GNUTLS_SSL3, 0 }; + const int mixed_proto[] = + { +#ifdef GNUTLS_VERSION_MAX + GNUTLS_VERSION_MAX, +#endif + GNUTLS_TLS1_1, + GNUTLS_TLS1_0, + GNUTLS_SSL3, + 0 }; switch (cl->server->type & ECORE_CON_SSL) { -- 2.7.4