提交 8dfb7960 编写于 作者: D Daniel P. Berrange

Use @SYSTEM priority for TLS on Fedora >= 21

In Fedora >= 21, there is a new crypto priority framework
that sets TLS policies globally for all apps. To activate
this with GNUTLS we must request "@SYSTEM" instead of
the traditional "NORMAL" string. The '@' causes gnutls todo
a lookup in its config file for the 'SYSTEM' keyword entry.
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 6d310c9c
...@@ -206,6 +206,12 @@ ...@@ -206,6 +206,12 @@
%define enable_werror --disable-werror %define enable_werror --disable-werror
%endif %endif
%if 0%{?fedora} >= 21
%define tls_priority "@SYSTEM"
%else
%define tls_priority "NORMAL"
%endif
Summary: Library providing a simple virtualization API Summary: Library providing a simple virtualization API
Name: libvirt Name: libvirt
...@@ -1152,6 +1158,7 @@ rm -f po/stamp-po ...@@ -1152,6 +1158,7 @@ rm -f po/stamp-po
%{arg_packager_version} \ %{arg_packager_version} \
--with-qemu-user=%{qemu_user} \ --with-qemu-user=%{qemu_user} \
--with-qemu-group=%{qemu_group} \ --with-qemu-group=%{qemu_group} \
--with-tls-priority=%{tls_priority} \
%{?arg_loader_nvram} \ %{?arg_loader_nvram} \
%{?enable_werror} \ %{?enable_werror} \
--enable-expensive-tests \ --enable-expensive-tests \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册