Skip to content

Commit

Permalink
Merge pull request #6 from quan-to/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
racerxdl authored Jan 11, 2019
2 parents dbcb8ce + 061279a commit 2e2a511
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions RemoteSigner/KeyRingManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public KeyRingManager() {
public void AddKey(string publicKey, bool nonErasable = false) {
using (var s = Tools.GenerateStreamFromString(publicKey)) {
var pgpPub = new PgpPublicKeyRing(PgpUtilities.GetDecoderStream(s));
var pubKey = pgpPub.GetPublicKey();
AddKey(pubKey, nonErasable);
foreach (PgpPublicKey pubKey in pgpPub.GetPublicKeys()) {
var fp = pubKey.KeyId.ToString("X16");
Logger.Log("KeyRingManager", $"Adding key {fp}");
AddKey(pubKey, nonErasable);
}
}
}

Expand Down

0 comments on commit 2e2a511

Please sign in to comment.