ecore_con: do proper version test for TLS_method.
authorAlastair Poole <netstar@gmail.com>
Thu, 21 Jun 2018 09:22:08 +0000 (10:22 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 21 Jun 2018 21:44:14 +0000 (06:44 +0900)
src/lib/ecore_con/efl_net_ssl_ctx-openssl.c

index b6774e0..6efba84 100644 (file)
@@ -9,11 +9,8 @@ struct _Efl_Net_Ssl_Ctx
    Eina_Bool is_dialer;
 };
 
-#ifndef TLS_server_method
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
 # define TLS_server_method TLSv1_2_server_method
-#endif
-
-#ifndef TLS_client_method
 # define TLS_client_method TLSv1_2_client_method
 #endif