summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2023-12-29 05:01:20 +0100
committerBenjamin Franzke <benjaminfranzke@gmail.com>2023-12-29 05:01:23 +0100
commitd5dbf11d1c727c2854ece57643eae8ab482e12bd (patch)
tree865ab6e145c0261d638f5ec463006e3fbea78314
parent2606a7ef6d4588a065b24cda2bfbdd859803d66b (diff)
downloadcmumble-d5dbf11d1c727c2854ece57643eae8ab482e12bd.tar.gz
cmumble-d5dbf11d1c727c2854ece57643eae8ab482e12bd.tar.bz2
cmumble-d5dbf11d1c727c2854ece57643eae8ab482e12bd.zip
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.
-rw-r--r--src/connection.c6
1 files changed, 0 insertions, 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);