diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/pkcs/Pkcs12Store.cs | 2 | ||||
-rw-r--r-- | crypto/test/src/pkcs/test/PKCS12StoreTest.cs | 2 |
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 |