Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta (tmow) <antenore@simbiosi.org>2021-09-05 23:40:14 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2021-09-05 23:40:14 +0300
commit97c612063d59e8a4b03884ea8b1571c0b33a670f (patch)
tree76cfd0c631087f50b23a3bf9a65332c9d8b7ad94 /plugins/www
parentc3afe49fc86d666873781a48c406851dbff55848 (diff)
Back compatibility with WebKit < 2.32.0
Signed-off-by: Antenore Gatta (tmow) <antenore@simbiosi.org>
Diffstat (limited to 'plugins/www')
-rw-r--r--plugins/www/www_plugin.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/plugins/www/www_plugin.c b/plugins/www/www_plugin.c
index aabc263db..689be0276 100644
--- a/plugins/www/www_plugin.c
+++ b/plugins/www/www_plugin.c
@@ -518,15 +518,25 @@ static void remmina_plugin_www_init(RemminaProtocolWidget *gp)
}
if (remmina_plugin_service->file_get_int(remminafile, "ignore-tls-errors", FALSE)) {
- webkit_website_data_manager_set_tls_errors_policy
- (gpdata->data_mgr, WEBKIT_TLS_ERRORS_POLICY_IGNORE);
+#if WEBKIT_CHECK_VERSION(2, 32, 0)
+ webkit_website_data_manager_set_tls_errors_policy(
+ gpdata->data_mgr, WEBKIT_TLS_ERRORS_POLICY_IGNORE);
+#else
+ webkit_web_context_set_tls_errors_policy(
+ gpdata->context, WEBKIT_TLS_ERRORS_POLICY_IGNORE);
+#endif
g_info("Ignore TLS errors");
}
if (remmina_plugin_service->file_get_string(remminafile, "proxy-url")) {
gchar *proxyurl = g_strdup(remmina_plugin_service->file_get_string(remminafile, "proxy-url"));
WebKitNetworkProxySettings *proxy_settings = webkit_network_proxy_settings_new (proxyurl, NULL);
- webkit_website_data_manager_set_network_proxy_settings
- (gpdata->data_mgr, WEBKIT_NETWORK_PROXY_MODE_CUSTOM, proxy_settings);
+#if WEBKIT_CHECK_VERSION(2, 32, 0)
+ webkit_website_data_manager_set_network_proxy_settings(
+ gpdata->data_mgr, WEBKIT_NETWORK_PROXY_MODE_CUSTOM, proxy_settings);
+#else
+ webkit_web_context_set_network_proxy_settings(
+ gpdata->context, WEBKIT_NETWORK_PROXY_MODE_CUSTOM,proxy_settings);
+#endif
webkit_network_proxy_settings_free(proxy_settings);
g_free(proxyurl);
}