From d5dbf11d1c727c2854ece57643eae8ab482e12bd Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 29 Dec 2023 05:01:20 +0100 Subject: Drop deprecated call to g_socket_client_set_tls_validation_flags See https://github.com/GNOME/glib/commit/d1e9e0c094a28972df725e3bb07b28e4dd7fb390 > This function does not work as originally designed and is impossible > to use correctly. See #GSocketClient:tls-validation-flags for more > information. --- src/connection.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/connection.c b/src/connection.c index abe6ca5..037f33b 100644 --- a/src/connection.c +++ b/src/connection.c @@ -60,12 +60,6 @@ cmumble_connection_init(struct cmumble *cm, con->sock_client = g_socket_client_new(); g_socket_client_set_tls(con->sock_client, TRUE); - /* - g_socket_client_set_tls_validation_flags(con->sock_client, - G_TLS_CERTIFICATE_INSECURE); - */ - g_socket_client_set_tls_validation_flags(con->sock_client, - G_TLS_CERTIFICATE_VALIDATE_ALL); g_socket_client_set_family(con->sock_client, G_SOCKET_FAMILY_IPV4); g_socket_client_set_protocol(con->sock_client, G_SOCKET_PROTOCOL_TCP); g_socket_client_set_socket_type(con->sock_client, G_SOCKET_TYPE_STREAM); -- cgit