Home GnuPG
Diffusion GpgOL f79f3379aba5

Fix S/MIME encryption with latest Exchange 2016

Description

Fix S/MIME encryption with latest Exchange 2016

* src/cryptcontroller.cpp (CryptController::update_mail_mapi):
Set overrideMimeTag to application/pkcs7-mime for smime enc.
* src/mimemaker.cpp (create_mapi_attachmend): Add overrideMimeTag
paramenter.
(create_top_encryption_header): Rearrange header for S/MIME enc.

Comparing outlooks own S/MIME mails with GpgOL mails lead to this.
Tests show that this way the mails do pass the exchange
server. With only slight variations we get errors.