summaryrefslogtreecommitdiff
path: root/providers
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2022-10-11 11:23:57 +1100
committerTomas Mraz <tomas@openssl.org>2022-10-19 13:21:01 +0200
commitecd831469919215b0a45693b00ec0fd7d42d5d61 (patch)
treecdc054a8c476b6fa45264f178a0b6e45eb2917e8 /providers
parentce9317a4cfc01541964a14745c4d09e2a846981c (diff)
downloadopenssl-new-ecd831469919215b0a45693b00ec0fd7d42d5d61.tar.gz
default provider: include RIPEMD160
Including RIPEMD160 in both the default and legacy providers shouldn't break anyone and makes the algorithm available more readily. Fixes #17722 Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19375)
Diffstat (limited to 'providers')
-rw-r--r--providers/defltprov.c4
-rw-r--r--providers/implementations/digests/build.info2
2 files changed, 5 insertions, 1 deletions
diff --git a/providers/defltprov.c b/providers/defltprov.c
index dc9521b235..a85e332445 100644
--- a/providers/defltprov.c
+++ b/providers/defltprov.c
@@ -153,6 +153,10 @@ static const OSSL_ALGORITHM deflt_digests[] = {
{ PROV_NAMES_MD5_SHA1, "provider=default", ossl_md5_sha1_functions },
#endif /* OPENSSL_NO_MD5 */
+#ifndef OPENSSL_NO_RMD160
+ { PROV_NAMES_RIPEMD_160, "provider=default", ossl_ripemd160_functions },
+#endif /* OPENSSL_NO_RMD160 */
+
{ PROV_NAMES_NULL, "provider=default", ossl_nullmd_functions },
{ NULL, NULL, NULL }
};
diff --git a/providers/implementations/digests/build.info b/providers/implementations/digests/build.info
index c6508b6e85..2d807416d6 100644
--- a/providers/implementations/digests/build.info
+++ b/providers/implementations/digests/build.info
@@ -15,7 +15,7 @@ $MD2_GOAL=../../liblegacy.a
$MD4_GOAL=../../liblegacy.a
$MDC2_GOAL=../../liblegacy.a
$WHIRLPOOL_GOAL=../../liblegacy.a
-$RIPEMD_GOAL=../../liblegacy.a
+$RIPEMD_GOAL=$COMMON_GOAL
# This source is common for all digests in all our providers.
SOURCE[$COMMON_GOAL]=digestcommon.c