From bdee1b35d807f0be2c4cbf1ba8b6abdb0a852bfb Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 19 Oct 2020 17:29:43 -0500 Subject: [PATCH 1/2] Remove UnsupportedOsPlatform from CryptoConfig as it is a safe utility class --- .../src/System/Security/Cryptography/CryptoConfig.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CryptoConfig.cs b/src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CryptoConfig.cs index 10ada271582680..8364139457a2c1 100644 --- a/src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CryptoConfig.cs +++ b/src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CryptoConfig.cs @@ -12,7 +12,6 @@ namespace System.Security.Cryptography { - [UnsupportedOSPlatform("browser")] public class CryptoConfig { private const string AssemblyName_Cng = "System.Security.Cryptography.Cng"; From 230bd9c913f203c21f6713211877fe20b624c09a Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 19 Oct 2020 17:45:25 -0500 Subject: [PATCH 2/2] Clean up the other references --- .../ref/System.Security.Cryptography.Algorithms.cs | 1 - .../src/System/Security/Cryptography/CryptoConfig.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/libraries/System.Security.Cryptography.Algorithms/ref/System.Security.Cryptography.Algorithms.cs b/src/libraries/System.Security.Cryptography.Algorithms/ref/System.Security.Cryptography.Algorithms.cs index e5b2651a5d6bea..5af666dc29fbdd 100644 --- a/src/libraries/System.Security.Cryptography.Algorithms/ref/System.Security.Cryptography.Algorithms.cs +++ b/src/libraries/System.Security.Cryptography.Algorithms/ref/System.Security.Cryptography.Algorithms.cs @@ -96,7 +96,6 @@ protected AsymmetricSignatureFormatter() { } public abstract void SetHashAlgorithm(string strName); public abstract void SetKey(System.Security.Cryptography.AsymmetricAlgorithm key); } - [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("browser")] public partial class CryptoConfig { public CryptoConfig() { } diff --git a/src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CryptoConfig.cs b/src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CryptoConfig.cs index 8364139457a2c1..a1aea6e932dd91 100644 --- a/src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CryptoConfig.cs +++ b/src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/CryptoConfig.cs @@ -8,7 +8,6 @@ using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; -using System.Runtime.Versioning; namespace System.Security.Cryptography {