Skip to content

Commit

Permalink
Tentatively unobsolete enum types
Browse files Browse the repository at this point in the history
  • Loading branch information
rzikm committed Aug 2, 2024
1 parent 734f2a3 commit f5f6435
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,6 @@ protected SocketException(System.Runtime.Serialization.SerializationInfo seriali
}
namespace System.Security.Authentication
{
[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}")]
public enum CipherAlgorithmType
{
None = 0,
Expand All @@ -540,15 +539,13 @@ public enum CipherAlgorithmType
Aes = 26129,
Rc4 = 26625,
}
[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}")]
public enum ExchangeAlgorithmType
{
None = 0,
RsaSign = 9216,
RsaKeyX = 41984,
DiffieHellman = 43522,
}
[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}")]
public enum HashAlgorithmType
{
None = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public enum SslProtocols
Default = Ssl3 | Tls
}

[Obsolete(Obsoletions.TlsCipherAlgorithmEnumsMessage, DiagnosticId = Obsoletions.TlsCipherAlgorithmEnumsDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
public enum ExchangeAlgorithmType
{
None = 0,
Expand All @@ -34,7 +33,6 @@ public enum ExchangeAlgorithmType
DiffieHellman = (Interop.Crypt32.ALG_CLASS_KEY_EXCHANGE | Interop.Crypt32.ALG_TYPE_DH | Interop.Crypt32.ALG_SID_DH_EPHEM),
}

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

[Obsolete(Obsoletions.TlsCipherAlgorithmEnumsMessage, DiagnosticId = Obsoletions.TlsCipherAlgorithmEnumsDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
public enum HashAlgorithmType
{
None = 0,
Expand Down

0 comments on commit f5f6435

Please sign in to comment.