Skip to content

Commit f5f6435

Browse files
committed
Tentatively unobsolete enum types
1 parent 734f2a3 commit f5f6435

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/libraries/System.Net.Primitives/ref/System.Net.Primitives.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ protected SocketException(System.Runtime.Serialization.SerializationInfo seriali
526526
}
527527
namespace System.Security.Authentication
528528
{
529-
[Obsolete("KeyExchangeAlgorithm, KeyExchangeStrength, CipherAlgorithm, CipherAlgorithmStrength, HashAlgorithm and HashStrength properties of SslStream are obsolete. Use NegotiatedCipherSuite instead.", DiagnosticId = "SYSLIB0058", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
530529
public enum CipherAlgorithmType
531530
{
532531
None = 0,
@@ -540,15 +539,13 @@ public enum CipherAlgorithmType
540539
Aes = 26129,
541540
Rc4 = 26625,
542541
}
543-
[Obsolete("KeyExchangeAlgorithm, KeyExchangeStrength, CipherAlgorithm, CipherAlgorithmStrength, HashAlgorithm and HashStrength properties of SslStream are obsolete. Use NegotiatedCipherSuite instead.", DiagnosticId = "SYSLIB0058", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
544542
public enum ExchangeAlgorithmType
545543
{
546544
None = 0,
547545
RsaSign = 9216,
548546
RsaKeyX = 41984,
549547
DiffieHellman = 43522,
550548
}
551-
[Obsolete("KeyExchangeAlgorithm, KeyExchangeStrength, CipherAlgorithm, CipherAlgorithmStrength, HashAlgorithm and HashStrength properties of SslStream are obsolete. Use NegotiatedCipherSuite instead.", DiagnosticId = "SYSLIB0058", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")]
552549
public enum HashAlgorithmType
553550
{
554551
None = 0,

src/libraries/System.Net.Primitives/src/System/Net/SecureProtocols/SslEnumTypes.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public enum SslProtocols
2525
Default = Ssl3 | Tls
2626
}
2727

28-
[Obsolete(Obsoletions.TlsCipherAlgorithmEnumsMessage, DiagnosticId = Obsoletions.TlsCipherAlgorithmEnumsDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
2928
public enum ExchangeAlgorithmType
3029
{
3130
None = 0,
@@ -34,7 +33,6 @@ public enum ExchangeAlgorithmType
3433
DiffieHellman = (Interop.Crypt32.ALG_CLASS_KEY_EXCHANGE | Interop.Crypt32.ALG_TYPE_DH | Interop.Crypt32.ALG_SID_DH_EPHEM),
3534
}
3635

37-
[Obsolete(Obsoletions.TlsCipherAlgorithmEnumsMessage, DiagnosticId = Obsoletions.TlsCipherAlgorithmEnumsDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
3836
public enum CipherAlgorithmType
3937
{
4038
None = 0, // No encryption
@@ -49,7 +47,6 @@ public enum CipherAlgorithmType
4947
Null = (Interop.Crypt32.ALG_CLASS_ENCRYPT), // 0-bit NULL cipher algorithm
5048
}
5149

52-
[Obsolete(Obsoletions.TlsCipherAlgorithmEnumsMessage, DiagnosticId = Obsoletions.TlsCipherAlgorithmEnumsDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
5350
public enum HashAlgorithmType
5451
{
5552
None = 0,

0 commit comments

Comments
 (0)