forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-crypt/tpm2-tss-engine: fix libressl issue
Closes: https://bugs.gentoo.org/show_bug.cgi?id=687084 Thanks: Toralf Förster Signed-off-by: Alon Bar-Lev <[email protected]> Package-Manager: Portage-2.3.66, Repoman-2.3.11
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
app-crypt/tpm2-tss-engine/files/tpm2-tss-engine-1.0.0-libressl.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From deb2b6697babf99aaf3f64b342ce414b48638ea3 Mon Sep 17 00:00:00 2001 | ||
From: Alon Bar-Lev <[email protected]> | ||
Date: Fri, 31 May 2019 20:36:47 +0300 | ||
Subject: [PATCH] build: libressl fix incomplete type | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
src/tpm2-tss-engine-rand.c:90:1: error: variable ‘rand_methods’ has initializer but incomplete type | ||
90 | static RAND_METHOD rand_methods = { | ||
| ^~~~~~ | ||
src/tpm2-tss-engine-rand.c:91:5: warning: excess elements in struct initializer | ||
|
||
Signed-off-by: Alon Bar-Lev <[email protected]> | ||
--- | ||
src/tpm2-tss-engine-rand.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
https://github.com/tpm2-software/tpm2-tss-engine/pull/120 | ||
|
||
diff --git a/src/tpm2-tss-engine-rand.c b/src/tpm2-tss-engine-rand.c | ||
index 50d5661..86980a5 100644 | ||
--- a/src/tpm2-tss-engine-rand.c | ||
+++ b/src/tpm2-tss-engine-rand.c | ||
@@ -32,6 +32,7 @@ | ||
#include <string.h> | ||
|
||
#include <openssl/engine.h> | ||
+#include <openssl/rand.h> | ||
|
||
#include <tss2/tss2_mu.h> | ||
#include <tss2/tss2_esys.h> | ||
-- | ||
2.21.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters