summaryrefslogtreecommitdiffstats
path: root/openpgp/src/parse.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2022-04-28 09:52:13 +0200
committerJustus Winter <justus@sequoia-pgp.org>2022-04-28 09:52:13 +0200
commit2c53a6ed6ce5f3ef6ed2dc7ed111d32cac0160ed (patch)
tree5f5cfb7265189ecb05eec9274241ea9c3d529d04 /openpgp/src/parse.rs
parent29e0eb184eaac6eede63313d55f09c1c494d9283 (diff)
openpgp: Don't mark unknown packets as encrypted.
- This goes back a long way, to e304deb0fc7a92801cf3ba58aafeb14ce2301aed where the flag was called `decrypted`, and every packet but SEIP had decrypted set to `true`. At some point, we inverted the flag, but for some reason decided to mark Unknown packets as encrypted, which makes no sense, and changing it doesn't seem to break documented (i.e. tested) behavior.
Diffstat (limited to 'openpgp/src/parse.rs')
-rw-r--r--openpgp/src/parse.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs
index a3514680..cb0ed087 100644
--- a/openpgp/src/parse.rs
+++ b/openpgp/src/parse.rs
@@ -1288,7 +1288,6 @@ impl Unknown {
{
let tag = php.header.ctb().tag();
php.ok(Packet::Unknown(Unknown::new(tag, error)))
- .map(|pp| pp.set_encrypted(true))
}
}