diff options
author | Arman Gungor <agungor@zoho.com> | 2023-05-03 10:24:37 -0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-05-04 11:44:18 +0700 |
commit | 0f18b4feadf42627c6043a49331e31efc43c13bb (patch) | |
tree | 33bd2b87e43c139d61d3175aeb2b8036b2a04236 | |
parent | Refactoring in Sparkle (diff) | |
download | BouncyCastle.NET-ed25519-0f18b4feadf42627c6043a49331e31efc43c13bb.tar.xz |
When there is reference equality, Equals() should return true.
-rw-r--r-- | crypto/Contributors.html | 3 | ||||
-rw-r--r-- | crypto/src/cms/SignerId.cs | 2 |
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; |