1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 11:27:57 +01:00

Fix replacePassphrase(secretKeys, passphrase)

This commit is contained in:
Paul Schaub 2021-12-13 13:28:34 +01:00
parent bf5510893d
commit c4e3e27821
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -128,7 +128,7 @@ public class CachingSecretKeyRingProtector implements SecretKeyRingProtector, Se
Iterator<PGPPublicKey> keys = keyRing.getPublicKeys();
while (keys.hasNext()) {
PGPPublicKey publicKey = keys.next();
addPassphrase(publicKey, passphrase);
replacePassphrase(publicKey.getKeyID(), passphrase);
}
}