diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2022-06-09 09:06:46 +0200 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2022-06-09 13:26:08 +0200 |
commit | dd44935e5a6ef1011d6ec6bc9bd7722187e511ec (patch) | |
tree | 313b8dad400fd1701d0038664bd6f0bd0bdb8758 /openpgp/src/parse | |
parent | aea7ba1a94ace78b1011b202e9884abccdab4012 (diff) |
openpgp: Rename PacketParser::{set_,}encrypted to processed.
- Convert `encrypted` to `processed`.
- Since `set_encrypted` is internal API it was directly renamed without
forwarder stub.
- `encrypted()` is public API thus the old function is converted to a
forwarder of the negation of `processed()`.
- `unprocessed()` marked as deprecated.
- Update docs and NEWS file.
- Fixes #845.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r-- | openpgp/src/parse/stream.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index 36459f9c..8013e107 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -2402,7 +2402,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> { sym_algo_hint, decryption_proxy)?; } - if pp.encrypted() { + if ! pp.processed() { return Err( Error::MissingSessionKey( "No session key decrypted".into()).into()); |