render / rpms / edk2

Forked from rpms/edk2 3 months ago
Clone

Blame SOURCES/0025-CryptoPkg-OpensslLib-list-RHEL8-specific-OpenSSL-fil.patch

82dd91
From 56c4bb81b311dfcee6a34c81d3e4feeda7f88995 Mon Sep 17 00:00:00 2001
63d87e
From: Laszlo Ersek <lersek@redhat.com>
63d87e
Date: Sat, 16 Nov 2019 17:11:27 +0100
63d87e
Subject: CryptoPkg/OpensslLib: list RHEL8-specific OpenSSL files in the INFs
63d87e
 (RH)
63d87e
82dd91
Notes about the RHEL-8.2/20190904-37eef91017ad [edk2-stable201908] ->
82dd91
RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] rebase:
82dd91
82dd91
- "OpensslLib.inf":
82dd91
82dd91
  - Automatic leading context refresh against upstream commit c72ca4666886
82dd91
    ("CryptoPkg/OpensslLib: Add "sort" keyword to header file parsing
82dd91
    loop", 2020-03-10).
82dd91
82dd91
  - Manual trailing context refresh against upstream commit b49a6c8f80d9
82dd91
    ("CryptoPkg/OpensslLib: improve INF file consistency", 2019-12-02).
82dd91
82dd91
- "OpensslLibCrypto.inf":
82dd91
82dd91
  - Automatic leading context refresh against upstream commits
82dd91
    8906f076de35 ("CryptoPkg/OpensslLib: Add missing header files in INF
82dd91
    file", 2019-08-16) and 9f4fbd56d430 ("CryptoPkg/OpensslLib: Update
82dd91
    process_files.pl to generate .h files", 2019-10-30).
82dd91
63d87e
Notes about the RHEL-8.1/20190308-89910a39dcfd [edk2-stable201903] ->
63d87e
RHEL-8.2/20190904-37eef91017ad [edk2-stable201908] rebase:
63d87e
63d87e
- new patch
63d87e
63d87e
The downstream changes in RHEL8's OpenSSL package, for example in
63d87e
"openssl-1.1.1-evp-kdf.patch", introduce new files, and even move some
63d87e
preexistent code into those new files. In order to avoid undefined
63d87e
references in link editing, we have to list the new files.
63d87e
63d87e
Note: "process_files.pl" is not re-run at this time manually, because
63d87e
63d87e
(a) "process_files.pl" would pollute the file list (and some of the
63d87e
    auto-generated header files) with RHEL8-specific FIPS artifacts, which
63d87e
    are explicitly unwanted in edk2,
63d87e
63d87e
(b) The RHEL OpenSSL maintainer, Tomas Mraz, identified this specific set
63d87e
    of files in <https://bugzilla.redhat.com/show_bug.cgi?id=1749693#c10>,
63d87e
    and will help with future changes too.
63d87e
63d87e
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
82dd91
(cherry picked from commit 57bd3f146590df8757865d8f2cdd1db3cf3f4d40)
63d87e
---
63d87e
 CryptoPkg/Library/OpensslLib/OpensslLib.inf       | 11 +++++++++++
63d87e
 CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf | 11 +++++++++++
63d87e
 2 files changed, 22 insertions(+)
63d87e
63d87e
diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
82dd91
index c8ec9454bd..24e790b538 100644
63d87e
--- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf
63d87e
+++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
82dd91
@@ -570,6 +570,17 @@
82dd91
   $(OPENSSL_PATH)/ssl/statem/statem.h
82dd91
   $(OPENSSL_PATH)/ssl/statem/statem_locl.h
63d87e
 # Autogenerated files list ends here
63d87e
+# RHEL8-specific OpenSSL file list starts here
63d87e
+  $(OPENSSL_PATH)/crypto/evp/kdf_lib.c
63d87e
+  $(OPENSSL_PATH)/crypto/evp/pkey_kdf.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/kbkdf.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/kdf_local.h
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/kdf_util.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/krb5kdf.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/pbkdf2.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/sshkdf.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/sskdf.c
63d87e
+# RHEL8-specific OpenSSL file list ends here
82dd91
   buildinf.h
82dd91
   rand_pool_noise.h
63d87e
   ossl_store.c
63d87e
diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
82dd91
index 2f232e3e12..52e70a2d03 100644
63d87e
--- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
63d87e
+++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
82dd91
@@ -519,6 +519,17 @@
82dd91
   $(OPENSSL_PATH)/crypto/x509v3/standard_exts.h
82dd91
   $(OPENSSL_PATH)/crypto/x509v3/v3_admis.h
63d87e
 # Autogenerated files list ends here
63d87e
+# RHEL8-specific OpenSSL file list starts here
63d87e
+  $(OPENSSL_PATH)/crypto/evp/kdf_lib.c
63d87e
+  $(OPENSSL_PATH)/crypto/evp/pkey_kdf.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/kbkdf.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/kdf_local.h
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/kdf_util.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/krb5kdf.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/pbkdf2.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/sshkdf.c
63d87e
+  $(OPENSSL_PATH)/crypto/kdf/sskdf.c
63d87e
+# RHEL8-specific OpenSSL file list ends here
63d87e
   buildinf.h
63d87e
   rand_pool_noise.h
63d87e
   ossl_store.c
63d87e
-- 
63d87e
2.18.1
63d87e