config_h.set_quoted('TIZEN_DEFAULT_CA_FILE', get_option('default_ca_file'))
endif
+# TIZEN extension
+if get_option('tizen_ext')
+ config_h.set('TIZEN_EXT', get_option('tizen_ext'))
+endif
+
# compiler flags
common_flags = [
'-DHAVE_CONFIG_H',
output += ' libproxy support: ' + libproxy_dep.found().to_string() + '\n'
output += ' GNOME proxy support: ' + gsettings_desktop_schemas_dep.found().to_string() + '\n'
output += ' TIZEN default CA file: ' + get_option('default_ca_file') + '\n'
+output += ' TIZEN extension: ' + get_option('tizen_ext').to_string() + '\n'
message(output)
option('installed_tests', type: 'boolean', value: false, description: 'enable installed tests')
option('static_modules', type: 'boolean', value: false, description: 'build static modules')
option('default_ca_file', type: 'string', value: '', description: 'set default CA file')
+option('tizen_ext', type: 'boolean', value: false, description: 'enable TIZEN extension')
cp %{SOURCE1001} .
%build
-meson --prefix /usr/ --libdir %{_libdir} build -Dstatic_modules=false -Dgnutls=disabled -Dopenssl=enabled -Ddefault_ca_file=%{TZ_SYS_RO_CA_BUNDLE}
+meson --prefix /usr/ --libdir %{_libdir} build -Dstatic_modules=false -Dgnutls=disabled -Dopenssl=enabled -Ddefault_ca_file=%{TZ_SYS_RO_CA_BUNDLE} -Dtizen_ext=true
ninja -C build all
%install
break;
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY:
case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT:
+#ifdef TIZEN_EXT
+ case X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN:
+#endif
gtls_flags = G_TLS_CERTIFICATE_UNKNOWN_CA;
break;
default: