Skip to content

Commit

Permalink
Added obsolete attributes on obsolete types.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Jul 25, 2021
1 parent ae183b1 commit c113929
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions SharpSnmpLib/Security/DESPrivacyProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ namespace Lextm.SharpSnmpLib.Security
/// </summary>
/// <remarks>Ported from SNMP#NET PrivacyDES class.</remarks>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DES", Justification = "definition")]
[Obsolete("DES is no longer secure. Please use a more secure provider.")]
public sealed class DESPrivacyProvider : IPrivacyProvider
{
private readonly SaltGenerator _salt = new SaltGenerator();
Expand Down
1 change: 1 addition & 0 deletions SharpSnmpLib/Security/MD5AuthenticationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace Lextm.SharpSnmpLib.Security
/// <summary>
/// Authentication provider using MD5.
/// </summary>
[Obsolete("MD5 is no longer secure. Please use a more secure provider.")]
public sealed class MD5AuthenticationProvider : IAuthenticationProvider
{
private const int Md5KeyCacheCapacity = 100;
Expand Down
1 change: 1 addition & 0 deletions SharpSnmpLib/Security/SHA1AuthenticationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace Lextm.SharpSnmpLib.Security
/// Authentication provider using SHA-1.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "SHA", Justification = "definition")]
[Obsolete("SHA-1 is no longer secure. Please use a more secure provider.")]
public sealed class SHA1AuthenticationProvider : IAuthenticationProvider
{
private const int Sha1KeyCacheCapacity = 100;
Expand Down
1 change: 1 addition & 0 deletions SharpSnmpLib/Security/TripleDESPrivacyProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace Lextm.SharpSnmpLib.Security
/// Privacy provider for 3DES.
/// </summary>
/// <remarks>Ported from SNMP#NET Privacy3DES class.</remarks>
[Obsolete("3DES is no longer secure. Please use a more secure provider.")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "DES", Justification = "definition")]
public sealed class TripleDESPrivacyProvider : IPrivacyProvider
{
Expand Down

0 comments on commit c113929

Please sign in to comment.