gpg: Also detect a plaintext packet before an encrypted packet.
* g10/mainproc.c (proc_encrypted): Print warning and later force an error.
Note that when this error is triggered the plaintext from the literal
data packet has already been outputted before the BEGIN_DECRYPTION
status line. We fail only later to get more information. Callers
need to check and act upon the decryption error code anyway.
Thanks to Marcus for pointing out this case.
(cherry picked from commit 344b548dc71657d0285d93f78f17a2663b5e586f)
- GnuPG-bug-id: T4000
- Signed-off-by: Werner Koch <firstname.lastname@example.org>