mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-24 04:52:05 +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());
|
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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue