summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2021-08-30 16:38:58 +1000
committerDavid Hook <dgh@cryptoworkshop.com>2021-08-30 16:38:58 +1000
commit46bf6e3b4366c18d916d4e180627fddba018a9a4 (patch)
treea6f38f9ef5736ad8a47ac7b1326578fdf17f6c8d
parentinitial fix for #261 (diff)
downloadBouncyCastle.NET-ed25519-46bf6e3b4366c18d916d4e180627fddba018a9a4.tar.xz
fixed typos
-rw-r--r--crypto/src/pkcs/Pkcs12Store.cs2
-rw-r--r--crypto/test/src/pkcs/test/PKCS12StoreTest.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/pkcs/Pkcs12Store.cs b/crypto/src/pkcs/Pkcs12Store.cs
index d71fbe862..61240d774 100644
--- a/crypto/src/pkcs/Pkcs12Store.cs
+++ b/crypto/src/pkcs/Pkcs12Store.cs
@@ -365,7 +365,7 @@ namespace Org.BouncyCastle.Pkcs
                                 if (aOid.Equals(PkcsObjectIdentifiers.Pkcs9AtLocalKeyID))
                                 {
                                     String id = Hex.ToHexString(Asn1OctetString.GetInstance(attr).GetOctets());
-                                    if (!(keys.Keys[id] != null || localIds.Keys[id] != null))
+                                    if (!(keys[id] != null || localIds[id] != null))
                                     {
                                         continue; // ignore this one - it's not valid
                                     }
diff --git a/crypto/test/src/pkcs/test/PKCS12StoreTest.cs b/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
index dbd4881c8..fbceffe58 100644
--- a/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
+++ b/crypto/test/src/pkcs/test/PKCS12StoreTest.cs
@@ -1427,7 +1427,7 @@ namespace Org.BouncyCastle.Pkcs.Tests
 			store.Load(new MemoryStream(repeatedLocalKeyIdPfx, false), "".ToCharArray());
 
 			IsTrue(store.GetCertificateChain("d4be139f9db456d225a8dcd2969479d960d2514a") == null);
-			IsTrue(store.GetCertificateChain("45cbf1116fb3f38b2984b3c7224cae70a74f7789").length == 1);
+			IsTrue(store.GetCertificateChain("45cbf1116fb3f38b2984b3c7224cae70a74f7789").Length == 1);
 		}
 
 		public override string Name