mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 20:42:06 +01:00
Do not add our pub key to config
This commit is contained in:
parent
6e84a8a301
commit
2706f60744
1 changed files with 3 additions and 3 deletions
|
@ -168,9 +168,9 @@ public class BouncyCastleOpenPgpProvider implements OpenPgpProvider {
|
|||
InMemoryKeyring decryptionConfig = KeyringConfigs.forGpgExportedKeys(KeyringConfigCallbacks.withUnprotectedKeys());
|
||||
|
||||
// Add our keys to decryption config
|
||||
for (PGPPublicKeyRing p : ourKeys.getPublicKeyRings()) {
|
||||
decryptionConfig.addPublicKey(p.getPublicKey().getEncoded());
|
||||
}
|
||||
// for (PGPPublicKeyRing p : ourKeys.getPublicKeyRings()) {
|
||||
// decryptionConfig.addPublicKey(p.getPublicKey().getEncoded());
|
||||
// }
|
||||
for (PGPSecretKeyRing s : ourKeys.getSecretKeyRings()) {
|
||||
decryptionConfig.addSecretKey(s.getSecretKey().getEncoded());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue