From 9d8abc8f775543d7f10eec457c00211b9f4de501 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 ceaac632b8366ae772c0f67987a4b34b243a3c08 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 4115835f13af61..f14fd4a4f704f8 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 {