Use of the function instead of the macro for the indicator unapproved check was
noted in: https://github.com/openssl/openssl/pull/25070#discussion_r1706564363
Fix things to use the macro properly.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
(Merged from https://github.com/openssl/openssl/pull/25134)
#ifdef FIPS_MODULE
if ((prsactx->pad_mode == RSA_PKCS1_PADDING
|| prsactx->pad_mode == RSA_PKCS1_WITH_TLS_PADDING)
- && !ossl_FIPS_IND_on_unapproved(OSSL_FIPS_IND_GET(prsactx),
- OSSL_FIPS_IND_SETTABLE1,
+ && !OSSL_FIPS_IND_ON_UNAPPROVED(prsactx, OSSL_FIPS_IND_SETTABLE1,
prsactx->libctx, "RSA Encrypt",
"PKCS#1 v1.5 padding",
FIPS_rsa_pkcs15_padding_disabled)) {