diff options
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()); |