dont use tls max if it doesnt exist eh?
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Sep 2010 11:41:15 +0000 (11:41 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Sep 2010 11:41:15 +0000 (11:41 +0000)
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

index daa288f..e259461 100644 (file)
@@ -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)
      {