ec: change FIPS zeroization to use the OPENSSL_PEDANTIC_ZEROIZATION define

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26068)
This commit is contained in:
Pauli 2024-11-27 11:18:38 +11:00 committed by Tomas Mraz
parent 0b05db0e20
commit f471061721

View File

@ -746,7 +746,7 @@ void EC_POINT_free(EC_POINT *point)
if (point == NULL)
return;
#ifdef FIPS_MODULE
#ifdef OPENSSL_PEDANTIC_ZEROIZATION
EC_POINT_clear_free(point);
#else
if (point->meth->point_finish != 0)