Use system ca file from libsoup if possible
This commit is contained in:
parent
35757c2842
commit
566794a67e
2 changed files with 7 additions and 1 deletions
|
@ -993,7 +993,12 @@ midori_load_soup_session (gpointer settings)
|
||||||
{
|
{
|
||||||
SoupSession* session = webkit_get_default_session ();
|
SoupSession* session = webkit_get_default_session ();
|
||||||
|
|
||||||
#if defined (HAVE_LIBSOUP_2_29_91)
|
#if defined (HAVE_LIBSOUP_2_37_1)
|
||||||
|
g_object_set (session,
|
||||||
|
"ssl-use-system-ca-file", TRUE,
|
||||||
|
"ssl-strict", FALSE,
|
||||||
|
NULL);
|
||||||
|
#elif defined (HAVE_LIBSOUP_2_29_91)
|
||||||
const gchar* certificate_files[] =
|
const gchar* certificate_files[] =
|
||||||
{
|
{
|
||||||
"/etc/pki/tls/certs/ca-bundle.crt",
|
"/etc/pki/tls/certs/ca-bundle.crt",
|
||||||
|
|
1
wscript
1
wscript
|
@ -243,6 +243,7 @@ def configure (conf):
|
||||||
conf.define ('HAVE_LIBSOUP_2_27_90', 1)
|
conf.define ('HAVE_LIBSOUP_2_27_90', 1)
|
||||||
check_pkg ('libsoup-2.4', '2.29.3', False, var='LIBSOUP_2_29_3')
|
check_pkg ('libsoup-2.4', '2.29.3', False, var='LIBSOUP_2_29_3')
|
||||||
check_pkg ('libsoup-2.4', '2.29.91', False, var='LIBSOUP_2_29_91')
|
check_pkg ('libsoup-2.4', '2.29.91', False, var='LIBSOUP_2_29_91')
|
||||||
|
check_pkg ('libsoup-2.4', '2.37.1', False, var='LIBSOUP_2_37_1')
|
||||||
conf.define ('LIBSOUP_VERSION', conf.check_cfg (modversion='libsoup-2.4'))
|
conf.define ('LIBSOUP_VERSION', conf.check_cfg (modversion='libsoup-2.4'))
|
||||||
check_pkg ('libxml-2.0', '2.6')
|
check_pkg ('libxml-2.0', '2.6')
|
||||||
check_pkg ('sqlite3', '3.0', True, var='SQLITE')
|
check_pkg ('sqlite3', '3.0', True, var='SQLITE')
|
||||||
|
|
Loading…
Reference in a new issue