summary refs log tree commit diff
diff options
context:
space:
mode:
authorArman Gungor <agungor@zoho.com>2023-05-03 10:24:37 -0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-05-04 11:44:18 +0700
commit0f18b4feadf42627c6043a49331e31efc43c13bb (patch)
tree33bd2b87e43c139d61d3175aeb2b8036b2a04236
parentRefactoring in Sparkle (diff)
downloadBouncyCastle.NET-ed25519-0f18b4feadf42627c6043a49331e31efc43c13bb.tar.xz
When there is reference equality, Equals() should return true.
-rw-r--r--crypto/Contributors.html3
-rw-r--r--crypto/src/cms/SignerId.cs2
2 files changed, 4 insertions, 1 deletions
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
 		<li>
 			<p>Anh Vo (https://github.com/anhvoms) - Ported OpenSSH utilities from bc-java.</p>
 		</li>
+		<li>
+			<p>Arman Gungor (https://github.com/gungora) - Fixed SignerId.Equals.</p>
+		</li>
 		</ul>
 	</body>
 </html>
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;