Avoid putting ripemd_prov.c in libcommon otherwise it is regarded as fips source

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)
This commit is contained in:
Tomas Mraz 2022-10-17 17:05:09 +02:00
parent ecd8314699
commit 155a82d1fe
2 changed files with 9 additions and 5 deletions

View 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

View 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