diff options
author | Pauli <pauli@openssl.org> | 2022-10-11 11:23:57 +1100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-10-19 13:28:08 +0200 |
commit | 4534468866c2b29d197c48f0763c32e5a7b65868 (patch) | |
tree | 58c2fba1142880974d6b2272335287c114b9316e /providers | |
parent | c861c3ee142ac00d5facd112fd8891e87c50bc7b (diff) |
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)
(cherry picked from commit ecd831469919215b0a45693b00ec0fd7d42d5d61)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/defltprov.c | 4 | ||||
-rw-r--r-- | providers/implementations/digests/build.info | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/providers/defltprov.c b/providers/defltprov.c index 6e669fbdfb..2e7f9d0896 100644 --- a/providers/defltprov.c +++ b/providers/defltprov.c @@ -148,6 +148,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 |