From: Dmitry Belyavskiy Date: Wed, 27 Aug 2025 14:16:54 +0000 (+0200) Subject: Add GENERIC SKEYMGMT to the legacy provider X-Git-Tag: openssl-3.6.0-alpha1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c3c2f5cd8f9ebfda36704e517238a9c7a1c2b4c;p=thirdparty%2Fopenssl.git Add GENERIC SKEYMGMT to the legacy provider Reviewed-by: Tim Hudson Reviewed-by: Matt Caswell Reviewed-by: Neil Horman (Merged from https://github.com/openssl/openssl/pull/28369) --- diff --git a/providers/implementations/skeymgmt/build.info b/providers/implementations/skeymgmt/build.info index 8bccdd72f6c..4143b572b10 100644 --- a/providers/implementations/skeymgmt/build.info +++ b/providers/implementations/skeymgmt/build.info @@ -2,7 +2,11 @@ # switch each to the Legacy provider when needed. $AES_GOAL=../../libdefault.a ../../libfips.a -$GENERIC_GOAL=../../libdefault.a ../../libfips.a +IF[{- !$disabled{module} -}] + $GENERIC_GOAL=../../libdefault.a ../../libfips.a ../../liblegacy.a +ELSE + $GENERIC_GOAL=../../libdefault.a ../../libfips.a +ENDIF SOURCE[$AES_GOAL]=aes_skmgmt.c SOURCE[$GENERIC_GOAL]=generic.c diff --git a/providers/legacyprov.c b/providers/legacyprov.c index 4aacedeee0e..bceb620c557 100644 --- a/providers/legacyprov.c +++ b/providers/legacyprov.c @@ -167,6 +167,11 @@ static const OSSL_ALGORITHM legacy_kdfs[] = { { NULL, NULL, NULL } }; +static const OSSL_ALGORITHM legacy_skeymgmt[] = { + ALG(PROV_NAMES_GENERIC, ossl_generic_skeymgmt_functions), + { NULL, NULL, NULL } +}; + static const OSSL_ALGORITHM *legacy_query(void *provctx, int operation_id, int *no_cache) { @@ -178,6 +183,8 @@ static const OSSL_ALGORITHM *legacy_query(void *provctx, int operation_id, return legacy_ciphers; case OSSL_OP_KDF: return legacy_kdfs; + case OSSL_OP_SKEYMGMT: + return legacy_skeymgmt; } return NULL; }