From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web10.383.1605310772091437835 for ; Fri, 13 Nov 2020 15:39:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LAw7ApMa; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605310771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C7G9XZcXkITKHCw/IAHaM/tbU5aQ3T9quezblIt9d3A=; b=LAw7ApMaZ2CPFfYWD0/9aomdma9iCU/6GoqDf7GiegytIplEXOdr70P8soPgSmUOzi/gKb nIvBvgf+JLtht3N4963ZyFaAHSJNUGNzPD2xuRkAbsUnnGswZP0se9RbJIdXXKUnUjGRU3 4J6GBufieFV/CkE20HCWQqjBgtDgB5Q= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-253-Q2TMLQzzMpKJf1frHsE_Uw-1; Fri, 13 Nov 2020 18:39:27 -0500 X-MC-Unique: Q2TMLQzzMpKJf1frHsE_Uw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AAC9180F040; Fri, 13 Nov 2020 23:39:25 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-112-113.ams2.redhat.com [10.36.112.113]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2D83C171D6; Fri, 13 Nov 2020 23:39:24 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH V4 03/13] CryptoPkg/dsc: Enable MD5 when CRYPTO_SERVICES enable MD5 To: devel@edk2.groups.io, zhichao.gao@intel.com Cc: Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang References: <20201112055558.2348-1-zhichao.gao@intel.com> <20201112055558.2348-4-zhichao.gao@intel.com> From: "Laszlo Ersek" Message-ID: <9fbc3c89-a1c3-c290-075a-eb0dd1b484eb@redhat.com> Date: Sat, 14 Nov 2020 00:39:23 +0100 MIME-Version: 1.0 In-Reply-To: <20201112055558.2348-4-zhichao.gao@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 11/12/20 06:55, Gao, Zhichao wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3021 > > CRYPTO_SERVICES PACKAGES and ALL config would enable MD5 > function. So explicitly enable MD5 while CRYPTO_SERVICES > are set PACKAGES and ALL. > > Cc: Jiewen Yao > Cc: Jian J Wang > Cc: Xiaoyu Lu > Cc: Guomin Jiang > Cc: Laszlo Ersek > Signed-off-by: Zhichao Gao > --- > CryptoPkg/CryptoPkg.dsc | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/CryptoPkg/CryptoPkg.dsc b/CryptoPkg/CryptoPkg.dsc > index 7e51f6fac5..55383f2722 100644 > --- a/CryptoPkg/CryptoPkg.dsc > +++ b/CryptoPkg/CryptoPkg.dsc > @@ -308,3 +308,9 @@ > > [BuildOptions] > *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES > +!if $(CRYPTO_SERVICES) IN "PACKAGE ALL" > + MSFT:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES > + INTEL:*_*_*_CC_FLAGS = /D ENABLE_MD5_DEPRECATED_INTERFACES > + GCC:*_*_*_CC_FLAGS = -D ENABLE_MD5_DEPRECATED_INTERFACES > + RVCT:*_*_*_CC_FLAGS = -DENABLE_MD5_DEPRECATED_INTERFACES > +!endif > Reviewed-by: Laszlo Ersek