Home GnuPG
Diffusion GpgOL 88ab93687c3d

Opened/Closed encrypted pgp messages unencrypted with read as plain

Description

Opened/Closed encrypted pgp messages unencrypted with read as plain

* src/oemhelp.h: declare oom_toggle_selection function
* src/oemhelp.cpp: implement oom_toggle_selection function
* src/mail.h; Add new flag m_BodyVerifyFailed
* src/mail.cpp: Add check to decryptVerfivy_o that the put Body can
                        be read back otherwise set the new flag.
                        In parsingDone_o deselect the Mail if the new
                        flag is set
                        In close only allow PassWrite if the new flag is
                        not set
* src/windowmessages.h: add new event SELECT_MAIL
* src/windowmessages.cpp: Add commented out handling for the new event

Prevent plaintext leak by not allowing the write to pass based unless
that getting the Body after putting the placeholder into
the Body did return a non empty string.
We also deselect the mail if the check fails.

  • GnuPG-Bug-Id: T7858

Details

Provenance
mmontkowskiAuthored on Fri, Oct 24, 2:29 PM
Parents
rO6557ef3d5011: Opened/Closed encrypted pgp messages keep categories with read as plain
Branches
Unknown
Tags
Unknown
Tasks
Unknown Object (Maniphest Task)