D20757: Test mails for Decryption Oracle based on replying to PGP or S/MIME.
Sandro Knauß
noreply at phabricator.kde.org
Tue Apr 23 14:52:46 BST 2019
knauss added a comment.
In D20757#454566 <https://phabricator.kde.org/D20757#454566>, @aacid wrote:
> Sorry if this is a stupid question :D
>
> But does this test make sense?
>
> I mean how is the test supposed to decrypt the encrypted part of it? How does it know the keys/password/whatever to decrypt it?
All the keys are inside `messagecore/autotests/gnupg_home/`, but this has some `*.conf.in` files, so can't use the version in `sourcedir` and need to use the `gnupg_home` in `builddir`.
Than we have `cmake/modules/kdepim_add_gpg_crypto_test.cmake` with the macro `add_gpg_crypto_test` that makes sure, that you have a gpg-agent running for executing the tests.
As you can see that the `add_templateparser_unittest` use this marco, so `MimeTreeParser` can decrypt stuff and some other tests in templateparserjob like `test_processWithTemplatesForBody_data` do this decryption tests.
REPOSITORY
R94 PIM: Message Library
REVISION DETAIL
https://phabricator.kde.org/D20757
To: knauss, #kde_pim, aacid, dfaure
Cc: vkrause, kde-pim, dvasin, rodsevich, winterz, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20190423/527fe369/attachment.html>
More information about the kde-pim
mailing list