From 0f18b4feadf42627c6043a49331e31efc43c13bb Mon Sep 17 00:00:00 2001 From: Arman Gungor Date: Wed, 3 May 2023 10:24:37 -0700 Subject: When there is reference equality, Equals() should return true. --- crypto/Contributors.html | 3 +++ crypto/src/cms/SignerId.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crypto/Contributors.html b/crypto/Contributors.html index b297aa7b8..29122ef38 100644 --- a/crypto/Contributors.html +++ b/crypto/Contributors.html @@ -283,6 +283,9 @@ University of Wollongong, Institute of Cybersecurity and Cryptology, under the s
  • Anh Vo (https://github.com/anhvoms) - Ported OpenSSH utilities from bc-java.

  • +
  • +

    Arman Gungor (https://github.com/gungora) - Fixed SignerId.Equals.

    +
  • diff --git a/crypto/src/cms/SignerId.cs b/crypto/src/cms/SignerId.cs index 8023ca280..3d38a58dc 100644 --- a/crypto/src/cms/SignerId.cs +++ b/crypto/src/cms/SignerId.cs @@ -36,7 +36,7 @@ namespace Org.BouncyCastle.Cms object obj) { if (obj == this) - return false; + return true; SignerID id = obj as SignerID; -- cgit 1.4.1