[Differential] [Request, 661 lines] D3213: Add simple API to check/toggle TOFU mode
dvratil (Daniel Vrátil)
noreply at phabricator.kde.org
Mon Oct 31 12:23:51 GMT 2016
dvratil created this revision.
dvratil added a reviewer: aheinecke.
dvratil set the repository for this revision to rLIBKLEO PIM: Kleo Library.
dvratil added a project: KDE PIM.
Restricted Application added a subscriber: kde-pim.
REVISION SUMMARY
While waiting for Andre's input on the other task, I started looking into TOFU support. Since TOFU needs to be globally enabled in a config file, I'd like to have an official API for that in gnupg-related library rather than having a code that deals with other application's configuration file hidden somewhere in a random PIM library or app.
This patch adds a simple API to check if TOFU model is supported, enabled and to enable/disable it.
Maybe we could eventually upstream this to gpgme, but for now this should do just fine.
TEST PLAN
To my own surprise, I actually wrote a unittest.
REPOSITORY
rLIBKLEO PIM: Kleo Library
REVISION DETAIL
https://phabricator.kde.org/D3213
AFFECTED FILES
CMakeLists.txt
autotests/CMakeLists.txt
autotests/fakehomes/disabled/gpg.conf
autotests/fakehomes/disabled/gpg.conf.disabled
autotests/fakehomes/disabled/gpg.conf.enabled
autotests/fakehomes/new/gpg.conf
autotests/fakehomes/new/gpg.conf.disabled
autotests/fakehomes/new/gpg.conf.enabled
autotests/fakehomes/trust-model-auto/gpg.conf
autotests/fakehomes/trust-model-auto/gpg.conf.disabled
autotests/fakehomes/trust-model-auto/gpg.conf.enabled
autotests/fakehomes/trust-model-tofu-pgp/gpg.conf
autotests/fakehomes/trust-model-tofu-pgp/gpg.conf.disabled
autotests/fakehomes/trust-model-tofu-pgp/gpg.conf.enabled
autotests/fakehomes/trust-model-tofu/gpg.conf
autotests/fakehomes/trust-model-tofu/gpg.conf.disabled
autotests/fakehomes/trust-model-tofu/gpg.conf.enabled
autotests/gpgconf.py
autotests/tofutest.cpp
src/CMakeLists.txt
src/kleo/tofu.cpp
src/kleo/tofu.h
EMAIL PREFERENCES
https://phabricator.kde.org/settings/panel/emailpreferences/
To: dvratil, aheinecke
Cc: kde-pim, spencerb, dvasin, winterz, vkrause, mlaurent, knauss, dvratil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20161031/4bc959cd/attachment.html>
More information about the kde-pim
mailing list