From 46bf6e3b4366c18d916d4e180627fddba018a9a4 Mon Sep 17 00:00:00 2001 From: David Hook Date: Mon, 30 Aug 2021 16:38:58 +1000 Subject: fixed typos --- crypto/src/pkcs/Pkcs12Store.cs | 2 +- crypto/test/src/pkcs/test/PKCS12StoreTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto') 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 -- cgit 1.4.1