summaryrefslogtreecommitdiffstats
path: root/libtdenetwork/gpgmepp/context.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-08-19 21:15:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-08-20 10:02:47 +0900
commit9441cfb0db89a24d2a01c85416677a56c9b269b0 (patch)
treed5ccd8f2e79bcbdb437495afcadf8b37b02c26e9 /libtdenetwork/gpgmepp/context.cpp
parentb82b302bf3b6d7a9561676b70e1edf3010a19805 (diff)
downloadtdepim-9441cfb0db89a24d2a01c85416677a56c9b269b0.tar.gz
tdepim-9441cfb0db89a24d2a01c85416677a56c9b269b0.zip
tdenetwork: remove trust item and trust list related code. This resolves issue #162.
libgpgme-dev 2.0 completely removed the code related to trust item and trust list. Moreover according the their author, that code was only working for a brief time around 2003. In view of that, the code in TDE has been fully removed rather than making conditional based on the library version available. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libtdenetwork/gpgmepp/context.cpp')
-rw-r--r--libtdenetwork/gpgmepp/context.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/libtdenetwork/gpgmepp/context.cpp b/libtdenetwork/gpgmepp/context.cpp
index 547adde9..5c61bd53 100644
--- a/libtdenetwork/gpgmepp/context.cpp
+++ b/libtdenetwork/gpgmepp/context.cpp
@@ -23,7 +23,7 @@
#include <gpgmepp/context.h>
#include <gpgmepp/eventloopinteractor.h>
-#include <gpgmepp/trustitem.h>
+#include <gpgmepp/key.h>
#include <gpgmepp/keylistresult.h>
#include <gpgmepp/keygenerationresult.h>
#include <gpgmepp/importresult.h>
@@ -348,21 +348,6 @@ namespace GpgME {
return d->lasterr = gpgme_op_delete_start( d->ctx, key.impl(), int( allowSecretKeyDeletion ) );
}
- Error Context::startTrustItemListing( const char * pattern, int maxLevel ) {
- d->lastop = Private::TrustList;
- return d->lasterr = gpgme_op_trustlist_start( d->ctx, pattern, maxLevel );
- }
-
- TrustItem Context::nextTrustItem( Error & e ) {
- gpgme_trust_item_t ti = 0;
- e = d->lasterr = gpgme_op_trustlist_next( d->ctx, &ti );
- return ti;
- }
-
- Error Context::endTrustItemListing() {
- return d->lasterr = gpgme_op_trustlist_end( d->ctx );
- }
-
DecryptionResult Context::decrypt( const Data & cipherText, Data & plainText ) {
d->lastop = Private::Decrypt;
Data::Private * cdp = cipherText.impl();