|
|
f60719 |
From e81751a1c303f5cd4bcae0ed1a38c60c38a0cf38 Mon Sep 17 00:00:00 2001
|
|
|
f60719 |
From: Guomin Jiang <guomin.jiang@intel.com>
|
|
|
f60719 |
Date: Fri, 10 Jul 2020 09:47:31 +0800
|
|
|
f60719 |
Subject: [PATCH 4/5] CryptoPkg/OpensslLib: Upgrade OpenSSL to 1.1.1g
|
|
|
f60719 |
|
|
|
f60719 |
RH-Author: Laszlo Ersek (lersek)
|
|
|
f60719 |
RH-MergeRequest: 2: [RHEL-8.4.0] bump OpenSSL dist-git submodule to 1.1.1g
|
|
|
f60719 |
RH-Commit: [1/2] 36d4bc34a3b5c421819e94c58ff84fd779a93bae (lersek/edk2)
|
|
|
f60719 |
RH-Bugzilla: 1893806
|
|
|
f60719 |
|
|
|
f60719 |
--v-- RHEL8 notes --v--
|
|
|
f60719 |
|
|
|
f60719 |
- The "CryptoPkg/Library/OpensslLib/openssl" hunk, advancing upstream
|
|
|
f60719 |
edk2's OpenSSL submodule reference, has been stripped from this
|
|
|
f60719 |
backport. (Refer to downstream commit c5d729df70f8 ("remove upstream
|
|
|
f60719 |
edk2's openssl submodule (RH only)", 2020-06-05), as basis.) The
|
|
|
f60719 |
corresponding RHEL8 OpenSSL dist-git bump is implemented in a subsequent
|
|
|
f60719 |
patch in this series.
|
|
|
f60719 |
|
|
|
f60719 |
This cherry-pick and the RHEL8 OpenSSL dist-git submodule bump are kept
|
|
|
f60719 |
separate for easing the next rebase, even at the cost of introducing a
|
|
|
f60719 |
brief interval in the git history where the downstream exploded tree
|
|
|
f60719 |
does not build.
|
|
|
f60719 |
|
|
|
f60719 |
- Contextual difference in "OpensslLib.inf" due to downstream commit
|
|
|
f60719 |
56c4bb81b311 ("CryptoPkg/OpensslLib: list RHEL8-specific OpenSSL files
|
|
|
f60719 |
in the INFs (RH)", 2020-06-05); automatically resolved by
|
|
|
f60719 |
git-cherry-pick.
|
|
|
f60719 |
|
|
|
f60719 |
--^-- RHEL8 notes --^--
|
|
|
f60719 |
|
|
|
f60719 |
Upgrade openssl to 1.1.1g. the directory have been reorganized,
|
|
|
f60719 |
openssl moved crypto/include/internal to include/crypto folder.
|
|
|
f60719 |
So we change directory to match the re-organization.
|
|
|
f60719 |
|
|
|
f60719 |
The dso_conf.h and opensslconf.h will generated in UNIX format,
|
|
|
f60719 |
change process_files.pl to covent the EOL automatically.
|
|
|
f60719 |
|
|
|
f60719 |
Cc: Jian J Wang <jian.j.wang@intel.com>
|
|
|
f60719 |
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
|
|
|
f60719 |
Signed-off-by: Guomin Jiang <guomin.jiang@intel.com>
|
|
|
f60719 |
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
f60719 |
Tested-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
f60719 |
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
|
|
|
f60719 |
(cherry picked from commit 8c30327debb28c0b6cfa2106b736774e0b20daac)
|
|
|
f60719 |
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
f60719 |
---
|
|
|
f60719 |
CryptoPkg/CryptoPkg.dec | 1 -
|
|
|
f60719 |
.../Library/BaseCryptLib/Hash/CryptSm3.c | 2 +-
|
|
|
f60719 |
.../BaseCryptLib/Pk/CryptPkcs7VerifyEku.c | 4 +-
|
|
|
f60719 |
.../Include/{internal => crypto}/dso_conf.h | 32 +++++-----
|
|
|
f60719 |
.../Library/Include/openssl/opensslconf.h | 3 -
|
|
|
f60719 |
CryptoPkg/Library/OpensslLib/OpensslLib.inf | 58 +++++++++----------
|
|
|
f60719 |
.../Library/OpensslLib/OpensslLibCrypto.inf | 50 ++++++++--------
|
|
|
f60719 |
CryptoPkg/Library/OpensslLib/process_files.pl | 25 +++++---
|
|
|
f60719 |
CryptoPkg/Library/OpensslLib/rand_pool.c | 2 +-
|
|
|
f60719 |
9 files changed, 90 insertions(+), 87 deletions(-)
|
|
|
f60719 |
rename CryptoPkg/Library/Include/{internal => crypto}/dso_conf.h (76%)
|
|
|
f60719 |
|
|
|
f60719 |
diff --git a/CryptoPkg/CryptoPkg.dec b/CryptoPkg/CryptoPkg.dec
|
|
|
f60719 |
index 4d1a1368a8..5888941bab 100644
|
|
|
f60719 |
--- a/CryptoPkg/CryptoPkg.dec
|
|
|
f60719 |
+++ b/CryptoPkg/CryptoPkg.dec
|
|
|
f60719 |
@@ -23,7 +23,6 @@
|
|
|
f60719 |
Private
|
|
|
f60719 |
Library/Include
|
|
|
f60719 |
Library/OpensslLib/openssl/include
|
|
|
f60719 |
- Library/OpensslLib/openssl/crypto/include
|
|
|
f60719 |
|
|
|
f60719 |
[LibraryClasses]
|
|
|
f60719 |
## @libraryclass Provides basic library functions for cryptographic primitives.
|
|
|
f60719 |
diff --git a/CryptoPkg/Library/BaseCryptLib/Hash/CryptSm3.c b/CryptoPkg/Library/BaseCryptLib/Hash/CryptSm3.c
|
|
|
f60719 |
index eacf4826c4..235331c2a0 100644
|
|
|
f60719 |
--- a/CryptoPkg/Library/BaseCryptLib/Hash/CryptSm3.c
|
|
|
f60719 |
+++ b/CryptoPkg/Library/BaseCryptLib/Hash/CryptSm3.c
|
|
|
f60719 |
@@ -7,7 +7,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
f60719 |
**/
|
|
|
f60719 |
|
|
|
f60719 |
#include "InternalCryptLib.h"
|
|
|
f60719 |
-#include "internal/sm3.h"
|
|
|
f60719 |
+#include "crypto/sm3.h"
|
|
|
f60719 |
|
|
|
f60719 |
/**
|
|
|
f60719 |
Retrieves the size, in bytes, of the context buffer required for SM3 hash operations.
|
|
|
f60719 |
diff --git a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyEku.c b/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyEku.c
|
|
|
f60719 |
index 229c244b26..c9fdb65b99 100644
|
|
|
f60719 |
--- a/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyEku.c
|
|
|
f60719 |
+++ b/CryptoPkg/Library/BaseCryptLib/Pk/CryptPkcs7VerifyEku.c
|
|
|
f60719 |
@@ -15,13 +15,13 @@
|
|
|
f60719 |
#include <openssl/asn1.h>
|
|
|
f60719 |
#include <openssl/x509.h>
|
|
|
f60719 |
#include <openssl/bio.h>
|
|
|
f60719 |
-#include <internal/x509_int.h>
|
|
|
f60719 |
+#include <crypto/x509.h>
|
|
|
f60719 |
#include <openssl/pkcs7.h>
|
|
|
f60719 |
#include <openssl/bn.h>
|
|
|
f60719 |
#include <openssl/x509_vfy.h>
|
|
|
f60719 |
#include <openssl/pem.h>
|
|
|
f60719 |
#include <openssl/evp.h>
|
|
|
f60719 |
-#include <internal/asn1_int.h>
|
|
|
f60719 |
+#include <crypto/asn1.h>
|
|
|
f60719 |
|
|
|
f60719 |
/**
|
|
|
f60719 |
This function will return the leaf signer certificate in a chain. This is
|
|
|
f60719 |
diff --git a/CryptoPkg/Library/Include/internal/dso_conf.h b/CryptoPkg/Library/Include/crypto/dso_conf.h
|
|
|
f60719 |
similarity index 76%
|
|
|
f60719 |
rename from CryptoPkg/Library/Include/internal/dso_conf.h
|
|
|
f60719 |
rename to CryptoPkg/Library/Include/crypto/dso_conf.h
|
|
|
f60719 |
index 43c891588b..95f4db2b15 100644
|
|
|
f60719 |
--- a/CryptoPkg/Library/Include/internal/dso_conf.h
|
|
|
f60719 |
+++ b/CryptoPkg/Library/Include/crypto/dso_conf.h
|
|
|
f60719 |
@@ -1,16 +1,16 @@
|
|
|
f60719 |
-/* WARNING: do not edit! */
|
|
|
f60719 |
-/* Generated from crypto/include/internal/dso_conf.h.in */
|
|
|
f60719 |
-/*
|
|
|
f60719 |
- * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
f60719 |
- *
|
|
|
f60719 |
- * Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
f60719 |
- * this file except in compliance with the License. You can obtain a copy
|
|
|
f60719 |
- * in the file LICENSE in the source distribution or at
|
|
|
f60719 |
- * https://www.openssl.org/source/license.html
|
|
|
f60719 |
- */
|
|
|
f60719 |
-
|
|
|
f60719 |
-#ifndef HEADER_DSO_CONF_H
|
|
|
f60719 |
-# define HEADER_DSO_CONF_H
|
|
|
f60719 |
-# define DSO_NONE
|
|
|
f60719 |
-# define DSO_EXTENSION ".so"
|
|
|
f60719 |
-#endif
|
|
|
f60719 |
+/* WARNING: do not edit! */
|
|
|
f60719 |
+/* Generated from include/crypto/dso_conf.h.in */
|
|
|
f60719 |
+/*
|
|
|
f60719 |
+ * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
f60719 |
+ *
|
|
|
f60719 |
+ * Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
f60719 |
+ * this file except in compliance with the License. You can obtain a copy
|
|
|
f60719 |
+ * in the file LICENSE in the source distribution or at
|
|
|
f60719 |
+ * https://www.openssl.org/source/license.html
|
|
|
f60719 |
+ */
|
|
|
f60719 |
+
|
|
|
f60719 |
+#ifndef OSSL_CRYPTO_DSO_CONF_H
|
|
|
f60719 |
+# define OSSL_CRYPTO_DSO_CONF_H
|
|
|
f60719 |
+# define DSO_NONE
|
|
|
f60719 |
+# define DSO_EXTENSION ".so"
|
|
|
f60719 |
+#endif
|
|
|
f60719 |
diff --git a/CryptoPkg/Library/Include/openssl/opensslconf.h b/CryptoPkg/Library/Include/openssl/opensslconf.h
|
|
|
f60719 |
index 62c2736cb0..3a2544ea5c 100644
|
|
|
f60719 |
--- a/CryptoPkg/Library/Include/openssl/opensslconf.h
|
|
|
f60719 |
+++ b/CryptoPkg/Library/Include/openssl/opensslconf.h
|
|
|
f60719 |
@@ -247,9 +247,6 @@ extern "C" {
|
|
|
f60719 |
#ifndef OPENSSL_NO_DYNAMIC_ENGINE
|
|
|
f60719 |
# define OPENSSL_NO_DYNAMIC_ENGINE
|
|
|
f60719 |
#endif
|
|
|
f60719 |
-#ifndef OPENSSL_NO_AFALGENG
|
|
|
f60719 |
-# define OPENSSL_NO_AFALGENG
|
|
|
f60719 |
-#endif
|
|
|
f60719 |
|
|
|
f60719 |
|
|
|
f60719 |
/*
|
|
|
f60719 |
diff --git a/CryptoPkg/Library/OpensslLib/OpensslLib.inf b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
|
|
f60719 |
index 24e790b538..4c21b11d0a 100644
|
|
|
f60719 |
--- a/CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
|
|
f60719 |
+++ b/CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
|
|
f60719 |
@@ -477,45 +477,45 @@
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/s390x_arch.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/sparc_arch.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/vms_rms.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/aes/aes_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/aes/aes_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/asn1/asn1_item_list.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/asn1/asn1_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/asn1/asn1_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/asn1/charmap.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/asn1/standard_methods.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/asn1/tbl_standard.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/async/async_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/async/async_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/async/arch/async_null.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/async/arch/async_posix.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/async/arch/async_win.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/bio/bio_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/bn/bn_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/bio/bio_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/bn/bn_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/bn/bn_prime.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/bn/rsaz_exp.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/comp/comp_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/comp/comp_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/conf/conf_def.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/conf/conf_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/dh/dh_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/dso/dso_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/evp/evp_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/hmac/hmac_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/lhash/lhash_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/md5/md5_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/modes/modes_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/conf/conf_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/dh/dh_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/dso/dso_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/evp/evp_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/hmac/hmac_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/lhash/lhash_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/md5/md5_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/modes/modes_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/objects/obj_dat.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/objects/obj_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/objects/obj_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/objects/obj_xref.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/ocsp/ocsp_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/pkcs12/p12_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/rand/rand_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/rsa/rsa_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/sha/sha_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/ocsp/ocsp_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/pkcs12/p12_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/rand/rand_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/rsa/rsa_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/sha/sha_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/siphash/siphash_local.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/sm3/sm3_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/store/store_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/ui/ui_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/x509/x509_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/sm3/sm3_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/store/store_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/ui/ui_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/x509/x509_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/x509v3/ext_dat.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/x509v3/pcy_int.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/x509v3/pcy_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/x509v3/standard_exts.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/x509v3/v3_admis.h
|
|
|
f60719 |
$(OPENSSL_PATH)/ssl/bio_ssl.c
|
|
|
f60719 |
@@ -562,13 +562,13 @@
|
|
|
f60719 |
$(OPENSSL_PATH)/ssl/t1_trce.c
|
|
|
f60719 |
$(OPENSSL_PATH)/ssl/tls13_enc.c
|
|
|
f60719 |
$(OPENSSL_PATH)/ssl/tls_srp.c
|
|
|
f60719 |
- $(OPENSSL_PATH)/ssl/packet_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/ssl/packet_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/ssl/ssl_cert_table.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/ssl/ssl_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/ssl/ssl_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/ssl/record/record.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/ssl/record/record_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/ssl/record/record_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/ssl/statem/statem.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/ssl/statem/statem_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/ssl/statem/statem_local.h
|
|
|
f60719 |
# Autogenerated files list ends here
|
|
|
f60719 |
# RHEL8-specific OpenSSL file list starts here
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/evp/kdf_lib.c
|
|
|
f60719 |
diff --git a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
|
|
|
f60719 |
index 52e70a2d03..0c3b210d6a 100644
|
|
|
f60719 |
--- a/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
|
|
|
f60719 |
+++ b/CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
|
|
|
f60719 |
@@ -477,45 +477,45 @@
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/s390x_arch.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/sparc_arch.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/vms_rms.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/aes/aes_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/aes/aes_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/asn1/asn1_item_list.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/asn1/asn1_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/asn1/asn1_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/asn1/charmap.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/asn1/standard_methods.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/asn1/tbl_standard.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/async/async_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/async/async_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/async/arch/async_null.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/async/arch/async_posix.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/async/arch/async_win.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/bio/bio_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/bn/bn_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/bio/bio_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/bn/bn_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/bn/bn_prime.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/bn/rsaz_exp.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/comp/comp_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/comp/comp_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/conf/conf_def.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/conf/conf_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/dh/dh_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/dso/dso_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/evp/evp_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/hmac/hmac_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/lhash/lhash_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/md5/md5_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/modes/modes_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/conf/conf_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/dh/dh_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/dso/dso_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/evp/evp_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/hmac/hmac_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/lhash/lhash_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/md5/md5_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/modes/modes_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/objects/obj_dat.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/objects/obj_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/objects/obj_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/objects/obj_xref.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/ocsp/ocsp_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/pkcs12/p12_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/rand/rand_lcl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/rsa/rsa_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/sha/sha_locl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/ocsp/ocsp_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/pkcs12/p12_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/rand/rand_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/rsa/rsa_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/sha/sha_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/siphash/siphash_local.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/sm3/sm3_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/store/store_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/ui/ui_locl.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/x509/x509_lcl.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/sm3/sm3_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/store/store_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/ui/ui_local.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/x509/x509_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/x509v3/ext_dat.h
|
|
|
f60719 |
- $(OPENSSL_PATH)/crypto/x509v3/pcy_int.h
|
|
|
f60719 |
+ $(OPENSSL_PATH)/crypto/x509v3/pcy_local.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/x509v3/standard_exts.h
|
|
|
f60719 |
$(OPENSSL_PATH)/crypto/x509v3/v3_admis.h
|
|
|
f60719 |
# Autogenerated files list ends here
|
|
|
f60719 |
diff --git a/CryptoPkg/Library/OpensslLib/process_files.pl b/CryptoPkg/Library/OpensslLib/process_files.pl
|
|
|
f60719 |
index 65d07a2aed..57ce195394 100755
|
|
|
f60719 |
--- a/CryptoPkg/Library/OpensslLib/process_files.pl
|
|
|
f60719 |
+++ b/CryptoPkg/Library/OpensslLib/process_files.pl
|
|
|
f60719 |
@@ -111,8 +111,8 @@ BEGIN {
|
|
|
f60719 |
# Generate dso_conf.h per config data
|
|
|
f60719 |
system(
|
|
|
f60719 |
"perl -I. -Mconfigdata util/dofile.pl " .
|
|
|
f60719 |
- "crypto/include/internal/dso_conf.h.in " .
|
|
|
f60719 |
- "> include/internal/dso_conf.h"
|
|
|
f60719 |
+ "include/crypto/dso_conf.h.in " .
|
|
|
f60719 |
+ "> include/crypto/dso_conf.h"
|
|
|
f60719 |
) == 0 ||
|
|
|
f60719 |
die "Failed to generate dso_conf.h!\n";
|
|
|
f60719 |
|
|
|
f60719 |
@@ -263,14 +263,21 @@ print "Done!";
|
|
|
f60719 |
# Copy opensslconf.h and dso_conf.h generated from OpenSSL Configuration
|
|
|
f60719 |
#
|
|
|
f60719 |
print "\n--> Duplicating opensslconf.h into Include/openssl ... ";
|
|
|
f60719 |
-copy($OPENSSL_PATH . "/include/openssl/opensslconf.h",
|
|
|
f60719 |
- $OPENSSL_PATH . "/../../Include/openssl/") ||
|
|
|
f60719 |
- die "Cannot copy opensslconf.h!";
|
|
|
f60719 |
+system(
|
|
|
f60719 |
+ "perl -pe 's/\\n/\\r\\n/' " .
|
|
|
f60719 |
+ "< " . $OPENSSL_PATH . "/include/openssl/opensslconf.h " .
|
|
|
f60719 |
+ "> " . $OPENSSL_PATH . "/../../Include/openssl/opensslconf.h"
|
|
|
f60719 |
+ ) == 0 ||
|
|
|
f60719 |
+ die "Cannot copy opensslconf.h!";
|
|
|
f60719 |
print "Done!";
|
|
|
f60719 |
-print "\n--> Duplicating dso_conf.h into Include/internal ... ";
|
|
|
f60719 |
-copy($OPENSSL_PATH . "/include/internal/dso_conf.h",
|
|
|
f60719 |
- $OPENSSL_PATH . "/../../Include/internal/") ||
|
|
|
f60719 |
- die "Cannot copy dso_conf.h!";
|
|
|
f60719 |
+
|
|
|
f60719 |
+print "\n--> Duplicating dso_conf.h into Include/crypto ... ";
|
|
|
f60719 |
+system(
|
|
|
f60719 |
+ "perl -pe 's/\\n/\\r\\n/' " .
|
|
|
f60719 |
+ "< " . $OPENSSL_PATH . "/include/crypto/dso_conf.h" .
|
|
|
f60719 |
+ "> " . $OPENSSL_PATH . "/../../Include/crypto/dso_conf.h"
|
|
|
f60719 |
+ ) == 0 ||
|
|
|
f60719 |
+ die "Cannot copy dso_conf.h!";
|
|
|
f60719 |
print "Done!\n";
|
|
|
f60719 |
|
|
|
f60719 |
print "\nProcessing Files Done!\n";
|
|
|
f60719 |
diff --git a/CryptoPkg/Library/OpensslLib/rand_pool.c b/CryptoPkg/Library/OpensslLib/rand_pool.c
|
|
|
f60719 |
index 9f3983f7c3..9e0179b034 100644
|
|
|
f60719 |
--- a/CryptoPkg/Library/OpensslLib/rand_pool.c
|
|
|
f60719 |
+++ b/CryptoPkg/Library/OpensslLib/rand_pool.c
|
|
|
f60719 |
@@ -7,7 +7,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
f60719 |
|
|
|
f60719 |
**/
|
|
|
f60719 |
|
|
|
f60719 |
-#include "internal/rand_int.h"
|
|
|
f60719 |
+#include "crypto/rand.h"
|
|
|
f60719 |
#include <openssl/aes.h>
|
|
|
f60719 |
|
|
|
f60719 |
#include <Uefi.h>
|
|
|
f60719 |
--
|
|
|
f60719 |
2.27.0
|
|
|
f60719 |
|