summaryrefslogtreecommitdiffstats
path: root/providers/legacyprov.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-02-14 22:49:26 +0000
committerMatt Caswell <matt@openssl.org>2020-02-21 20:17:02 +0000
commit745fc918e7eeb86b2ac541325a8ae5c6e374ee56 (patch)
tree9c79d0d5d784ec0251bb08f51ab20a04c42e69cc /providers/legacyprov.c
parent980a880ee5a85b94caac3049c7d3be0b765d97d3 (diff)
Introduce the provider property
Replace the properties default, fips and legacy with a single property called "provider". So, for example, instead of writing "default=yes" to get algorithms from the default provider you would instead write "provider=default". We also have a new "fips" property to indicate that an algorithm is compatible with FIPS mode. This applies to all the algorithms in the FIPS provider, as well as any non-cryptographic algorithms (currently only serializers). Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11097)
Diffstat (limited to 'providers/legacyprov.c')
-rw-r--r--providers/legacyprov.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/providers/legacyprov.c b/providers/legacyprov.c
index 5937328638..3494a8801c 100644
--- a/providers/legacyprov.c
+++ b/providers/legacyprov.c
@@ -56,23 +56,23 @@ static int legacy_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[])
static const OSSL_ALGORITHM legacy_digests[] = {
#ifndef OPENSSL_NO_MD2
- { "MD2", "legacy=yes", md2_functions },
+ { "MD2", "provider=legacy", md2_functions },
#endif
#ifndef OPENSSL_NO_MD4
- { "MD4", "legacy=yes", md4_functions },
+ { "MD4", "provider=legacy", md4_functions },
#endif
#ifndef OPENSSL_NO_MDC2
- { "MDC2", "legacy=yes", mdc2_functions },
+ { "MDC2", "provider=legacy", mdc2_functions },
#endif /* OPENSSL_NO_MDC2 */
#ifndef OPENSSL_NO_WHIRLPOOL
- { "WHIRLPOOL", "legacy=yes", wp_functions },
+ { "WHIRLPOOL", "provider=legacy", wp_functions },
#endif /* OPENSSL_NO_WHIRLPOOL */
#ifndef OPENSSL_NO_RMD160
- { "RIPEMD-160:RIPEMD160:RIPEMD:RMD160", "legacy=yes", ripemd160_functions },
+ { "RIPEMD-160:RIPEMD160:RIPEMD:RMD160", "provider=legacy", ripemd160_functions },
#endif /* OPENSSL_NO_RMD160 */
{ NULL, NULL, NULL }