diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2014-09-13 22:27:22 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2014-09-13 22:27:22 +0200 |
commit | 85d0f5b6d5724adfbdef462f21d0b0b427f61bde (patch) | |
tree | e6c6063c9816fd556fb556a00248ba086f2337dc /OpenKeychain/src/main/java/org/sufficientlysecure/keychain | |
parent | e2675caf234756c92669c84e8f855c780f8c5aae (diff) | |
download | open-keychain-85d0f5b6d5724adfbdef462f21d0b0b427f61bde.tar.gz open-keychain-85d0f5b6d5724adfbdef462f21d0b0b427f61bde.tar.bz2 open-keychain-85d0f5b6d5724adfbdef462f21d0b0b427f61bde.zip |
add key id to trailing asym data log msg
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java index bfa504bfd..6e59a3b9b 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpDecryptVerify.java @@ -375,11 +375,14 @@ public class PgpDecryptVerify { while (it.hasNext()) { Object obj = it.next(); if (obj instanceof PGPPublicKeyEncryptedData) { - log.add(LogLevel.WARN, LogType.MSG_DC_TRAIL_ASYM, 0); + PGPPublicKeyEncryptedData encData = (PGPPublicKeyEncryptedData) obj; + long subKeyId = encData.getKeyID(); + log.add(LogLevel.DEBUG, LogType.MSG_DC_TRAIL_ASYM, indent, + PgpKeyHelper.convertKeyIdToHex(subKeyId)); } else if (obj instanceof PGPPBEEncryptedData) { - log.add(LogLevel.WARN, LogType.MSG_DC_TRAIL_SYM, 0); + log.add(LogLevel.WARN, LogType.MSG_DC_TRAIL_SYM, indent); } else { - log.add(LogLevel.WARN, LogType.MSG_DC_TRAIL_UNKNOWN, 0); + log.add(LogLevel.WARN, LogType.MSG_DC_TRAIL_UNKNOWN, indent); } } |