summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/ecore_con.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_con/ecore_con.c')
-rw-r--r--src/lib/ecore_con/ecore_con.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index 75f083a..5cf7bc1 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -59,13 +59,6 @@ int sd_fd_max = 0;
59 59
60EWAPI Eina_Error EFL_NET_ERROR_COULDNT_RESOLVE_HOST = 0; 60EWAPI Eina_Error EFL_NET_ERROR_COULDNT_RESOLVE_HOST = 0;
61 61
62EWAPI Eina_Error EFL_NET_DIALER_ERROR_COULDNT_CONNECT = 0;
63EWAPI Eina_Error EFL_NET_DIALER_ERROR_COULDNT_RESOLVE_PROXY = 0;
64EWAPI Eina_Error EFL_NET_DIALER_ERROR_PROXY_AUTHENTICATION_FAILED = 0;
65
66EWAPI Eina_Error EFL_NET_SOCKET_SSL_ERROR_HANDSHAKE = 0;
67EWAPI Eina_Error EFL_NET_SOCKET_SSL_ERROR_CERTIFICATE_VERIFY_FAILED = 0;
68
69static int _ecore_con_init_count = 0; 62static int _ecore_con_init_count = 0;
70int _ecore_con_log_dom = -1; 63int _ecore_con_log_dom = -1;
71 64
@@ -104,12 +97,14 @@ ecore_con_init(void)
104 97
105 EFL_NET_ERROR_COULDNT_RESOLVE_HOST = eina_error_msg_static_register("Couldn't resolve host name"); 98 EFL_NET_ERROR_COULDNT_RESOLVE_HOST = eina_error_msg_static_register("Couldn't resolve host name");
106 99
107 EFL_NET_DIALER_ERROR_COULDNT_CONNECT = eina_error_msg_static_register("Couldn't connect to server"); 100 /* initialize the .eo file errors once to guarantee thread safety */
108 EFL_NET_DIALER_ERROR_COULDNT_RESOLVE_PROXY = eina_error_msg_static_register("Couldn't resolve proxy name"); 101
109 EFL_NET_DIALER_ERROR_PROXY_AUTHENTICATION_FAILED = eina_error_msg_static_register("Proxy authentication failed"); 102 EFL_NET_DIALER_ERROR_COULDNT_CONNECT;
103 EFL_NET_DIALER_ERROR_COULDNT_RESOLVE_PROXY;
104 EFL_NET_DIALER_ERROR_PROXY_AUTHENTICATION_FAILED;
110 105
111 EFL_NET_SOCKET_SSL_ERROR_HANDSHAKE = eina_error_msg_static_register("Failed SSL handshake"); 106 EFL_NET_SOCKET_SSL_ERROR_HANDSHAKE;
112 EFL_NET_SOCKET_SSL_ERROR_CERTIFICATE_VERIFY_FAILED = eina_error_msg_static_register("Failed to verify peer's certificate"); 107 EFL_NET_SOCKET_SSL_ERROR_CERTIFICATE_VERIFY_FAILED;
113 108
114#ifdef HAVE_SYSTEMD 109#ifdef HAVE_SYSTEMD
115 sd_fd_max = sd_listen_fds(0); 110 sd_fd_max = sd_listen_fds(0);