Change S/MIME behavior depending on Exchange ver.
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 11 Apr 2018 11:15:09 +0000 (13:15 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 11 Apr 2018 11:15:09 +0000 (13:15 +0200)
commit88a3204d34b97430e7f1f80ebfe1f9f8e6fa9ddc
tree5ad25c294436540cb9e6df98227ea4d05ccaf791
parentdc48589b3d429d7d156c75b4e7bc784b140f40ce
Change S/MIME behavior depending on Exchange ver.

* src/oomhelp.cpp, src/oomhelp.h (get_ex_major_version_for_addr): New.
* src/cryptcontroller.cpp (create_encrypt_attach): Accept
exchange version as parameter. Change behavior accordingly.
(CryptController::update_mail_mapi): Add handling for exchange ver.
* src/mimemaker.cpp (create_top_encryption_header): Accept
exchange ver.
* src/mimemaker.h: Update accordingly.

--
This fixes 7cb3feaf which broke S/MIME encrypted send for
older exchange versions and SMTP / IMAP. Because it unconditionally
used different code to construct the encrypted message in the
expectation that this would also work as an alternative.

GnuPG-Bug-Id: T3884
src/cryptcontroller.cpp
src/mimemaker.cpp
src/mimemaker.h
src/oomhelp.cpp
src/oomhelp.h