From 43049a87a8ed8e26bec89065c76b8e15ab23160a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Jun 2026 14:52:07 +0000 Subject: [PATCH] Guard portable OpenSSL fallback checks with ifdef Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com> --- .../pal_ecc_import_export.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/native/libs/System.Security.Cryptography.Native/pal_ecc_import_export.c b/src/native/libs/System.Security.Cryptography.Native/pal_ecc_import_export.c index 268d6f3e7f46d2..c8d48027284334 100644 --- a/src/native/libs/System.Security.Cryptography.Native/pal_ecc_import_export.c +++ b/src/native/libs/System.Security.Cryptography.Native/pal_ecc_import_export.c @@ -1511,7 +1511,7 @@ int32_t CryptoNative_EvpPKeyGenerateByEcCurveOid( #ifdef NEED_OPENSSL_1_1 // The portable build should only use the legacy OSSL 1.1 code path if OSSL 3.0+ APIs aren't present. -#if FEATURE_DISTRO_AGNOSTIC_SSL +#ifdef FEATURE_DISTRO_AGNOSTIC_SSL if (rc == 3) #endif { @@ -1718,7 +1718,7 @@ int32_t CryptoNative_EvpPKeyCreateByEcParameters( #ifdef NEED_OPENSSL_1_1 // The portable build should only use the legacy OSSL 1.1 code path if OSSL 3.0+ APIs aren't present. -#if FEATURE_DISTRO_AGNOSTIC_SSL +#ifdef FEATURE_DISTRO_AGNOSTIC_SSL if (rc == 3) #endif { @@ -2085,7 +2085,7 @@ int32_t CryptoNative_EvpPKeyCreateByEcExplicitParameters( #ifdef NEED_OPENSSL_1_1 // The portable build should only use the legacy OSSL 1.1 code path if OSSL 3.0+ APIs aren't present. -#if FEATURE_DISTRO_AGNOSTIC_SSL +#ifdef FEATURE_DISTRO_AGNOSTIC_SSL if (rc == 3) #endif {