mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
app-crypt/tpm2-openssl: Fix failing test
Closes: https://bugs.gentoo.org/901005 Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
From 483030d85563e26a62e4baeac3b0fdca0e314199 Mon Sep 17 00:00:00 2001
|
||||
From: Petr Gotthard <petr.gotthard@advantech.cz>
|
||||
Date: Fri, 23 Dec 2022 10:46:40 +0100
|
||||
Subject: [PATCH] tests: include base provider required to load ecparam
|
||||
|
||||
---
|
||||
test/ec_genpkey_parameters.sh | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/test/ec_genpkey_parameters.sh b/test/ec_genpkey_parameters.sh
|
||||
index 406b558..a4f68d7 100755
|
||||
--- a/test/ec_genpkey_parameters.sh
|
||||
+++ b/test/ec_genpkey_parameters.sh
|
||||
@@ -6,7 +6,7 @@ set -eufx
|
||||
openssl ecparam -name prime256v1 -out testparam.pem
|
||||
|
||||
# generate private key as PEM
|
||||
-openssl genpkey -provider tpm2 -paramfile testparam.pem -out testkey.pem
|
||||
+openssl genpkey -provider tpm2 -provider base -paramfile testparam.pem -out testkey.pem
|
||||
|
||||
# display private key info
|
||||
openssl ec -provider tpm2 -provider base -in testkey.pem -check -text -noout
|
||||
--
|
||||
2.39.2
|
||||
|
||||
@@ -5,4 +5,8 @@
|
||||
<email>salah.coronya@gmail.com</email>
|
||||
<name>Christopher Byrne</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">tpm2-software/tpm2-openssl</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
||||
|
||||
@@ -26,6 +26,10 @@ BDEPEND="sys-devel/autoconf-archive
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-1.1.1-tests-include-base-provider-required-to-load-ecparam.patch"
|
||||
)
|
||||
|
||||
dbus_run() {
|
||||
(
|
||||
# start isolated dbus session bus
|
||||
|
||||
Reference in New Issue
Block a user