From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web10.64005.1679539483463757164 for ; Wed, 22 Mar 2023 19:44:44 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=QL/VG5iI; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: yi1.li@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679539484; x=1711075484; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=y3Wn+btOyplkVwdJG9kVZZNE5CWAyO1IToctvWmhUmY=; b=QL/VG5iIS0n2laDxb+vCEjlQ6WzxZ/inUydbCifWEX+uGYpk3DqQfXQM LnJqPrwU/HzgH/rOaxtEjq4iFS6kB3BG4VswwCHTBER/keedw+VhuDwIu AEEcXaNG+yiBl0TeVK+kXAWHILOnpJWCP7ZzEOXdiNjDIZz7Qz2Xi/6JN 7EXhZSsEOPX2OC+fUPo6d4pLHrkLymTB1YbU4x3gGV7Ca3quS/sqP/B4+ i+uScAq3Bm4Oj0ufb70LaGf3um0YRPtBGs9V90bxJjbAOBii4FmKWbkql V9QBqvIqzZmEYGn9ER60w2f+8y/HDlURpufLh0aaiQl9gagMNsYFwbOEt w==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="338100733" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="338100733" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 19:44:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="712492310" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="712492310" Received: from liyi4-desktop.ccr.corp.intel.com ([10.239.153.82]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Mar 2023 19:44:42 -0700 From: "Li, Yi" To: devel@edk2.groups.io Cc: Yi Li Subject: [edk2-staging/OpenSSL11_EOL][PATCH 1/4] bugfix: use null md5 onlyif no-md5 defined Date: Thu, 23 Mar 2023 10:44:33 +0800 Message-Id: <30a05d9a8a61458e981251d2b9c9061d4e7589b2.1679537389.git.yi1.li@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Yi Li --- CryptoPkg/Library/OpensslLib/HashNull.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CryptoPkg/Library/OpensslLib/HashNull.c b/CryptoPkg/Library/OpensslLib/HashNull.c index ebd6369f98..e2a4da80a1 100644 --- a/CryptoPkg/Library/OpensslLib/HashNull.c +++ b/CryptoPkg/Library/OpensslLib/HashNull.c @@ -20,6 +20,8 @@ int ossl_sm3_final(unsigned char *md, SM3_CTX *c){ return -1; } #endif + +#ifdef OPENSSL_NO_MD5 #include "openssl/x509.h" const EVP_MD *EVP_md5(void) { return NULL; @@ -41,3 +43,4 @@ int ssl3_cbc_digest_record(const EVP_MD *md, size_t mac_secret_length, char is_sslv3) { return -1; } +#endif -- 2.31.1.windows.1