summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2021-07-02 00:15:48 +0200
committerVictor Kareh <[email protected]>2021-07-09 08:52:15 -0400
commit831b448c6289c76aff102e08407ddffc12084995 (patch)
tree23df86b3f76304fbe7d9eae7402d8c7d5c902316
parent74c7f241a34e85b1aa33daa9fd595b17b65756c1 (diff)
downloadlibmateweather-831b448c6289c76aff102e08407ddffc12084995.tar.bz2
libmateweather-831b448c6289c76aff102e08407ddffc12084995.tar.xz
use TLS certificate verification for libsoup session
-rw-r--r--libmateweather/weather.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmateweather/weather.c b/libmateweather/weather.c
index 50b7f8b..5b7bbe4 100644
--- a/libmateweather/weather.c
+++ b/libmateweather/weather.c
@@ -553,8 +553,9 @@ _weather_info_fill (WeatherInfo *info,
info->cb_data = data;
if (!info->session) {
- info->session = soup_session_async_new ();
- soup_session_add_feature_by_type (info->session, SOUP_TYPE_PROXY_RESOLVER_DEFAULT);
+ info->session = soup_session_async_new ();
+ soup_session_add_feature_by_type (info->session, SOUP_TYPE_PROXY_RESOLVER_DEFAULT);
+ g_object_set (G_OBJECT (info->session), "ssl-use-system-ca-file", TRUE, NULL);
}
metar_start_open (info);