1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-27 14:32:06 +01:00

Do not add our pub key to config

This commit is contained in:
Paul Schaub 2018-05-22 11:42:31 +02:00
parent 6e84a8a301
commit 2706f60744

View file

@ -168,9 +168,9 @@ public class BouncyCastleOpenPgpProvider implements OpenPgpProvider {
InMemoryKeyring decryptionConfig = KeyringConfigs.forGpgExportedKeys(KeyringConfigCallbacks.withUnprotectedKeys()); InMemoryKeyring decryptionConfig = KeyringConfigs.forGpgExportedKeys(KeyringConfigCallbacks.withUnprotectedKeys());
// Add our keys to decryption config // Add our keys to decryption config
for (PGPPublicKeyRing p : ourKeys.getPublicKeyRings()) { // for (PGPPublicKeyRing p : ourKeys.getPublicKeyRings()) {
decryptionConfig.addPublicKey(p.getPublicKey().getEncoded()); // decryptionConfig.addPublicKey(p.getPublicKey().getEncoded());
} // }
for (PGPSecretKeyRing s : ourKeys.getSecretKeyRings()) { for (PGPSecretKeyRing s : ourKeys.getSecretKeyRings()) {
decryptionConfig.addSecretKey(s.getSecretKey().getEncoded()); decryptionConfig.addSecretKey(s.getSecretKey().getEncoded());
} }