]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Avoid putting ripemd_prov.c in libcommon otherwise it is regarded as fips source
authorTomas Mraz <tomas@openssl.org>
Mon, 17 Oct 2022 15:05:09 +0000 (17:05 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 19 Oct 2022 11:21:01 +0000 (13:21 +0200)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19375)

crypto/ripemd/build.info
providers/implementations/digests/build.info

index 75a6cd5ff04a063b3a91b86709f4b07ca5fb0901..f050480de4e56060f293747e7374eb47f48de151 100644 (file)
@@ -19,10 +19,10 @@ SOURCE[../../libcrypto]=rmd_dgst.c rmd_one.c $RMD160ASM
 DEFINE[../../libcrypto]=$RMD160DEF
 
 # When all deprecated symbols are removed, libcrypto doesn't export the
-# RIPEMD160 functions, so we must include them directly in libcommon.a
-IF[{- $disabled{'deprecated-3.0'} -}]
-  SOURCE[../../providers/libcommon.a]=rmd_dgst.c rmd_one.c $RMD160ASM
-  DEFINE[../../providers/libcommon.a]=$RMD160DEF
+# RIPEMD160 functions, so we must include them directly in liblegacy.a
+IF[{- $disabled{'deprecated-3.0'} && !$disabled{'module'} -}]
+  SOURCE[../../providers/liblegacy.a]=rmd_dgst.c rmd_one.c $RMD160ASM
+  DEFINE[../../providers/liblegacy.a]=$RMD160DEF
 ENDIF
 
 GENERATE[rmd-586.S]=asm/rmd-586.pl
index 2d807416d626ff1c086de3fd99f0137b14e58903..d30975028e9fd7c9da2e8825cfe162f18e796811 100644 (file)
@@ -15,7 +15,11 @@ $MD2_GOAL=../../liblegacy.a
 $MD4_GOAL=../../liblegacy.a
 $MDC2_GOAL=../../liblegacy.a
 $WHIRLPOOL_GOAL=../../liblegacy.a
-$RIPEMD_GOAL=$COMMON_GOAL
+IF[{- !$disabled{module} -}]
+  $RIPEMD_GOAL=../../libdefault.a ../../liblegacy.a
+ELSE
+  $RIPEMD_GOAL=../../libdefault.a
+ENDIF
 
 # This source is common for all digests in all our providers.
 SOURCE[$COMMON_GOAL]=digestcommon.c