aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/libgda-cve-2021-39359.patch
blob: 5e14e793931e59b03e254797f614d5020c5f1d54 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From bebdffb4de586fb43fd07ac549121f4b22f6812d Mon Sep 17 00:00:00 2001
From: "Douglas R. Reno" <renodr@linuxfromscratch.org>
Date: Mon, 18 Oct 2021 13:18:01 -0500
Subject: [PATCH] Fix CVE-2021-39359 by forcing TLS certificate validation

This was done by adding "ssl-use-system-ca-file", TRUE to the options
for each soup_session_new_with_options() call that was made.

Tested on Linux From Scratch 11.0 and Debian 11.

Fixes #249
---
 providers/web/gda-web-provider.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/providers/web/gda-web-provider.c b/providers/web/gda-web-provider.c
index cf8d14dc3..cc818895f 100644
--- a/providers/web/gda-web-provider.c
+++ b/providers/web/gda-web-provider.c
@@ -355,8 +355,8 @@ gda_web_provider_open_connection (GdaServerProvider *provider, GdaConnection *cn
 	g_rec_mutex_init (& (cdata->mutex));
 	cdata->server_id = NULL;
 	cdata->forced_closing = FALSE;
-	cdata->worker_session = soup_session_new ();
-	cdata->front_session = soup_session_new_with_options ("max-conns-per-host", 1, NULL);
+	cdata->worker_session = soup_session_new_with_options ("ssl-use-system-ca-file", TRUE, NULL);
+	cdata->front_session = soup_session_new_with_options ("max-conns-per-host", 1, "ssl-use-system-ca-file", TRUE, NULL);
 	if (use_ssl) {
 		server_url = g_string_new ("https://");
 		g_print ("USING SSL\n");
-- 
GitLab

n>Vinicius Monego 2024-02-25gnu: python-graph-tool: Limit build to 1 core....* gnu/packages/graph.scm (python-graph-tool)[arguments]: Set parallel-build to #false. Change-Id: Id181554cda028c6e9985f029a3ef98d14efb0c27 Efraim Flashner 2024-01-23gnu: Add python-graphtools....* gnu/packages/graph.scm (python-graphtools): New variable. Change-Id: If08b1460447702f7ec2e64f013a52a7065076b01 Ricardo Wurmus 2024-01-23gnu: Add python-pygsp....* gnu/packages/graph.scm (python-pygsp): New variable. Change-Id: I8dd195216617e5cdb4a7453ecbe23cd9ff9e06a3 Ricardo Wurmus 2024-01-19gnu: python-graph-tool: Update to 2.59....* gnu/packages/graph.scm (python-graph-tool): Update to 2.59. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Change-Id: I08ecb5fe76183fa980fedf2408fc1df93ebbc63d Greg Hogan 2024-01-12gnu: python-graph-tool: Update to 2.58....* gnu/packages/graph.scm (python-graph-tool): Update to 2.58. Signed-off-by: Clément Lassieur <clement@lassieur.org> Ale Abdo