Use GnuTLS as the default crypto backend
libsecret applications typically use glib-networking for TLS, which loads GnuTLS for encryption. This is to limit the number of cryptographic libraries loaded at run-time. Signed-off-by: Daiki Ueno <dueno@redhat.com>
This commit is contained in:
parent
d87963af78
commit
a858664cc3
26
0001-tests-Remove-unnecessary-inclusion-of-gcrypt.h.patch
Normal file
26
0001-tests-Remove-unnecessary-inclusion-of-gcrypt.h.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From 7f31c832306c10f4e92ac31124e144abff282e46 Mon Sep 17 00:00:00 2001
|
||||
From: Daiki Ueno <dueno@src.gnome.org>
|
||||
Date: Mon, 11 Dec 2023 08:39:58 +0900
|
||||
Subject: [PATCH] tests: Remove unnecessary inclusion of <gcrypt.h>
|
||||
|
||||
Signed-off-by: Daiki Ueno <dueno@src.gnome.org>
|
||||
---
|
||||
egg/test-hkdf.c | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/egg/test-hkdf.c b/egg/test-hkdf.c
|
||||
index 289e702..d90233c 100644
|
||||
--- a/egg/test-hkdf.c
|
||||
+++ b/egg/test-hkdf.c
|
||||
@@ -32,8 +32,6 @@
|
||||
#include "egg/egg-secure-memory.h"
|
||||
#include "egg/egg-testing.h"
|
||||
|
||||
-#include <gcrypt.h>
|
||||
-
|
||||
#undef G_DISABLE_ASSERT
|
||||
|
||||
EGG_SECURE_DEFINE_GLIB_GLOBALS ();
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@ -5,14 +5,18 @@
|
||||
%global has_valgrind 1
|
||||
%endif
|
||||
|
||||
%bcond_without gnutls
|
||||
|
||||
Name: libsecret
|
||||
Version: 0.21.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Library for storing and retrieving passwords and other secrets
|
||||
|
||||
License: LGPLv2+
|
||||
URL: https://wiki.gnome.org/Projects/Libsecret
|
||||
Source0: https://download.gnome.org/sources/libsecret/%{release_version}/libsecret-%{version}.tar.xz
|
||||
# https://gitlab.gnome.org/GNOME/libsecret/-/merge_requests/133
|
||||
Patch: 0001-tests-Remove-unnecessary-inclusion-of-gcrypt.h.patch
|
||||
|
||||
BuildRequires: docbook-style-xsl
|
||||
BuildRequires: gettext
|
||||
@ -21,7 +25,11 @@ BuildRequires: meson
|
||||
BuildRequires: vala
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||
%if %{with gnutls}
|
||||
BuildRequires: pkgconfig(gnutls) >= 3.8.2
|
||||
%else
|
||||
BuildRequires: pkgconfig(libgcrypt) >= 1.2.2
|
||||
%endif
|
||||
BuildRequires: /usr/bin/xsltproc
|
||||
%if 0%{?has_valgrind}
|
||||
BuildRequires: valgrind-devel
|
||||
@ -54,7 +62,14 @@ rm -rf build/valgrind/
|
||||
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson \
|
||||
%if %{with gnutls}
|
||||
-Dcrypto=gnutls \
|
||||
%else
|
||||
-Dcrypto=libgcrypt \
|
||||
%endif
|
||||
%{nil}
|
||||
|
||||
%meson_build
|
||||
|
||||
|
||||
@ -89,6 +104,9 @@ rm -rf build/valgrind/
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Dec 10 2023 Daiki Ueno <dueno@redhat.com> - 0.21.2-2
|
||||
- Use GnuTLS as the default crypto backend
|
||||
|
||||
* Sat Dec 09 2023 Kalev Lember <klember@redhat.com> - 0.21.2-1
|
||||
- Update to 0.21.2
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user