summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2018-10-09 18:28:10 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2018-10-09 18:28:10 +0700
commit333baf8b0d8c4bd383f9e06f4413032f5e1fd707 (patch)
treecd66417d4c3b7666aa01733313897182338cc736
parentClean up usage of AutoResetEvent (PORTABLE only) (diff)
downloadBouncyCastle.NET-ed25519-333baf8b0d8c4bd383f9e06f4413032f5e1fd707.tar.xz
Fix unmarked key regression
- see https://github.com/bcgit/bc-csharp/issues/94
-rw-r--r--crypto/src/pkcs/Pkcs12Store.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/src/pkcs/Pkcs12Store.cs b/crypto/src/pkcs/Pkcs12Store.cs
index e65788733..507c0e3ee 100644
--- a/crypto/src/pkcs/Pkcs12Store.cs
+++ b/crypto/src/pkcs/Pkcs12Store.cs
@@ -367,6 +367,10 @@ namespace Org.BouncyCastle.Pkcs
                         keyCerts[name] = certEntry;
                         keys[name] = unmarkedKeyEntry;
                     }
+                    else
+                    {
+                        keys["unmarked"] = unmarkedKeyEntry;
+                    }
                 }
                 else
                 {