Skip to content

Commit

Permalink
Fix passphrase prompt on PGP decrypt (#16944)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzduniak authored and mmaxim committed Apr 11, 2019
1 parent ed368a4 commit 5262f90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/engine/scankeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ func (s *ScanKeys) unlockByID(m libkb.MetaContext, id uint64) openpgp.EntityList
Reason: unlockReason,
SecretUI: m.UIs().SecretUI,
}
unlocked, err := skb.PromptAndUnlock(m, parg, nil, s.me)
secretStore := libkb.NewSecretStore(m.G(), s.me.GetNormalizedName())
unlocked, err := skb.PromptAndUnlock(m, parg, secretStore, s.me)
if err != nil {
m.Warning("error unlocking key: %s", err)
continue
Expand Down

0 comments on commit 5262f90

Please sign in to comment.