<table><tr><td style="">dvratil created this revision.<br />dvratil added a reviewer: aheinecke.<br />dvratil set the repository for this revision to rLIBKLEO PIM: Kleo Library.<br />dvratil added a project: KDE PIM.<br />Restricted Application added a subscriber: kde-pim.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D3213" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>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.</p>

<p>This patch adds a simple API to check if TOFU model is supported, enabled and to enable/disable it.</p>

<p>Maybe we could eventually upstream this to gpgme, but for now this should do just fine.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>To my own surprise, I actually wrote a unittest.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rLIBKLEO PIM: Kleo Library</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3213" rel="noreferrer">https://phabricator.kde.org/D3213</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
autotests/CMakeLists.txt<br />
autotests/fakehomes/disabled/gpg.conf<br />
autotests/fakehomes/disabled/gpg.conf.disabled<br />
autotests/fakehomes/disabled/gpg.conf.enabled<br />
autotests/fakehomes/new/gpg.conf<br />
autotests/fakehomes/new/gpg.conf.disabled<br />
autotests/fakehomes/new/gpg.conf.enabled<br />
autotests/fakehomes/trust-model-auto/gpg.conf<br />
autotests/fakehomes/trust-model-auto/gpg.conf.disabled<br />
autotests/fakehomes/trust-model-auto/gpg.conf.enabled<br />
autotests/fakehomes/trust-model-tofu-pgp/gpg.conf<br />
autotests/fakehomes/trust-model-tofu-pgp/gpg.conf.disabled<br />
autotests/fakehomes/trust-model-tofu-pgp/gpg.conf.enabled<br />
autotests/fakehomes/trust-model-tofu/gpg.conf<br />
autotests/fakehomes/trust-model-tofu/gpg.conf.disabled<br />
autotests/fakehomes/trust-model-tofu/gpg.conf.enabled<br />
autotests/gpgconf.py<br />
autotests/tofutest.cpp<br />
src/CMakeLists.txt<br />
src/kleo/tofu.cpp<br />
src/kleo/tofu.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>dvratil, aheinecke<br /><strong>Cc: </strong>kde-pim, spencerb, dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>