From: Paul Louvel Date: Mon, 19 Jan 2026 18:16:57 +0000 (+0100) Subject: fix: added missing conditional macro when disabling the SipHash algorithm X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c1fead89023a57102a0d80cd43fc2fb0bda69cf;p=thirdparty%2Fopenssl.git fix: added missing conditional macro when disabling the SipHash algorithm Reviewed-by: Matt Caswell Reviewed-by: Paul Dale MergeDate: Fri Mar 13 15:50:39 2026 (Merged from https://github.com/openssl/openssl/pull/30212) --- diff --git a/apps/list.c b/apps/list.c index 3d39afaae43..7615d160724 100644 --- a/apps/list.c +++ b/apps/list.c @@ -1434,6 +1434,9 @@ static void list_disabled(void) #ifdef OPENSSL_NO_DSA BIO_puts(bio_out, "DSA\n"); #endif +#ifdef OPENSSL_NO_SIPHASH + BIO_puts(bio_out, "SIPHASH\n"); +#endif #if defined(OPENSSL_NO_DTLS) BIO_puts(bio_out, "DTLS\n"); #endif diff --git a/providers/defltprov.c b/providers/defltprov.c index 9a04822e3cc..7def2cde65d 100644 --- a/providers/defltprov.c +++ b/providers/defltprov.c @@ -500,8 +500,10 @@ static const OSSL_ALGORITHM deflt_signature[] = { { PROV_NAMES_ML_DSA_87, "provider=default", ossl_ml_dsa_87_signature_functions }, #endif { PROV_NAMES_HMAC, "provider=default", ossl_mac_legacy_hmac_signature_functions }, +#ifndef OPENSSL_NO_SIPHASH { PROV_NAMES_SIPHASH, "provider=default", ossl_mac_legacy_siphash_signature_functions }, +#endif #ifndef OPENSSL_NO_POLY1305 { PROV_NAMES_POLY1305, "provider=default", ossl_mac_legacy_poly1305_signature_functions }, @@ -622,8 +624,10 @@ static const OSSL_ALGORITHM deflt_keymgmt[] = { PROV_DESCS_SCRYPT_SIGN }, { PROV_NAMES_HMAC, "provider=default", ossl_mac_legacy_keymgmt_functions, PROV_DESCS_HMAC_SIGN }, +#ifndef OPENSSL_NO_SIPHASH { PROV_NAMES_SIPHASH, "provider=default", ossl_mac_legacy_keymgmt_functions, PROV_DESCS_SIPHASH_SIGN }, +#endif #ifndef OPENSSL_NO_POLY1305 { PROV_NAMES_POLY1305, "provider=default", ossl_mac_legacy_keymgmt_functions, PROV_DESCS_POLY1305_SIGN }, diff --git a/providers/implementations/include/prov/implementations.h b/providers/implementations/include/prov/implementations.h index 6eb06c9c9b9..a64b30ec2ae 100644 --- a/providers/implementations/include/prov/implementations.h +++ b/providers/implementations/include/prov/implementations.h @@ -276,7 +276,9 @@ extern const OSSL_DISPATCH ossl_kmac256_internal_functions[]; #endif extern const OSSL_DISPATCH ossl_kmac128_functions[]; extern const OSSL_DISPATCH ossl_kmac256_functions[]; +#ifndef OPENSSL_NO_SIPHASH extern const OSSL_DISPATCH ossl_siphash_functions[]; +#endif extern const OSSL_DISPATCH ossl_poly1305_functions[]; /* KDFs / PRFs */