diff --git a/src/native/libs/System.Security.Cryptography.Native/openssl.c b/src/native/libs/System.Security.Cryptography.Native/openssl.c index 6beb1a8a11ab93..7257101cde22ff 100644 --- a/src/native/libs/System.Security.Cryptography.Native/openssl.c +++ b/src/native/libs/System.Security.Cryptography.Native/openssl.c @@ -1292,7 +1292,7 @@ int32_t CryptoNative_IsSignatureAlgorithmAvailable(const char* algorithm) { int32_t ret = 0; -#if defined(NEED_OPENSSL_3_0) && defined(HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT) +#if defined(NEED_OPENSSL_3_0) && HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT if (!API_EXISTS(EVP_PKEY_sign_message_init) || !API_EXISTS(EVP_PKEY_verify_message_init)) { @@ -1306,7 +1306,7 @@ int32_t CryptoNative_IsSignatureAlgorithmAvailable(const char* algorithm) { ret = 1; EVP_SIGNATURE_free(sigAlg); - } + } #endif (void)algorithm; diff --git a/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey_ml_dsa.c b/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey_ml_dsa.c index b2d0eb9cb53213..e3c260dc35dd5a 100644 --- a/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey_ml_dsa.c +++ b/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey_ml_dsa.c @@ -9,7 +9,7 @@ EVP_PKEY* CryptoNative_MLDsaGenerateKey(const char* keyType, uint8_t* seed, int32_t seedLen) { -#if defined(NEED_OPENSSL_3_0) && defined(HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT) +#if defined(NEED_OPENSSL_3_0) && HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT if (!API_EXISTS(EVP_PKEY_sign_message_init) || !API_EXISTS(EVP_PKEY_verify_message_init)) { @@ -84,7 +84,7 @@ int32_t CryptoNative_MLDsaSignPure(EVP_PKEY *pkey, assert(destination); assert(destinationLen >= 2420 /* ML-DSA-44 signature size */); -#if defined(NEED_OPENSSL_3_0) && defined(HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT) +#if defined(NEED_OPENSSL_3_0) && HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT if (!API_EXISTS(EVP_PKEY_sign_message_init) || !API_EXISTS(EVP_PKEY_verify_message_init)) { @@ -164,7 +164,7 @@ int32_t CryptoNative_MLDsaVerifyPure(EVP_PKEY *pkey, assert(sigLen >= 2420 /* ML-DSA-44 signature size */); assert(contextLen >= 0); -#if defined(NEED_OPENSSL_3_0) && defined(HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT) +#if defined(NEED_OPENSSL_3_0) && HAVE_OPENSSL_EVP_PKEY_SIGN_MESSAGE_INIT if (!API_EXISTS(EVP_PKEY_sign_message_init) || !API_EXISTS(EVP_PKEY_verify_message_init)) {