From 50f82db26eaa743074fea538063abb4fec0adb02 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Mon, 19 Oct 2020 19:26:26 -0500 Subject: [PATCH] Remove UnsupportedOsPlatform from CryptoConfig as a utility class (#43611) * Remove UnsupportedOsPlatform from CryptoConfig as it is a safe utility class * Clean up the other references --- .../ref/System.Security.Cryptography.Algorithms.cs | 1 - .../src/System/Security/Cryptography/CryptoConfig.cs | 2 -- 2 files changed, 3 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 4115835f13af6..f14fd4a4f704f 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 10ada27158268..a1aea6e932dd9 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,11 +8,9 @@ using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; -using System.Runtime.Versioning; namespace System.Security.Cryptography { - [UnsupportedOSPlatform("browser")] public class CryptoConfig { private const string AssemblyName_Cng = "System.Security.Cryptography.Cng";