diff options
author | Andre Heinecke <[email protected]> | 2016-08-23 14:40:21 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-08-23 14:44:17 +0000 |
commit | 799b168243e6499ac01bf59e0656547f353a2589 (patch) | |
tree | ed18151952d2f48975a51bf03bef4ddc55724e5e /lang/cpp/src/verificationresult.cpp | |
parent | core: Put the protocol into a TOFU created key object. (diff) | |
download | gpgme-799b168243e6499ac01bf59e0656547f353a2589.tar.gz gpgme-799b168243e6499ac01bf59e0656547f353a2589.zip |
Cpp: Move tofuinfo from signature to userid
* lang/cpp/src/key.cpp (UserID::tofuInfo): New.
* lang/cpp/src/key.h: Update accordingly.
* lang/cpp/src/tofuinfo.cpp: Remove dropped fields.
* lang/cpp/src/tofuinfo.h: Update accordingly.
* lang/cpp/src/verificationresult.cpp,
lang/cpp/src/verificationresult.h: Remove tofu info.
* lang/qt/tests/t-tofuinfo.cpp: Disable for now.
--
With be4ff75d7 Tofu info now lives with a UserID
Object. While this breaks API it was not yet released.
Diffstat (limited to 'lang/cpp/src/verificationresult.cpp')
-rw-r--r-- | lang/cpp/src/verificationresult.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lang/cpp/src/verificationresult.cpp b/lang/cpp/src/verificationresult.cpp index 3eb8a850..c32c8964 100644 --- a/lang/cpp/src/verificationresult.cpp +++ b/lang/cpp/src/verificationresult.cpp @@ -24,7 +24,6 @@ #include <notation.h> #include "result_p.h" #include "util.h" -#include "tofuinfo.h" #include <gpgme.h> @@ -82,11 +81,6 @@ public: } nota.back().push_back(n); } - // copy tofu info: - tinfos.push_back(std::vector<TofuInfo>()); - for (gpgme_tofu_info_t in = is->tofu; in ; in = in->next) { - tinfos.back().push_back(TofuInfo(in)); - } } } ~Private() @@ -113,7 +107,6 @@ public: std::vector<gpgme_signature_t> sigs; std::vector< std::vector<Nota> > nota; - std::vector< std::vector<TofuInfo> > tinfos; std::vector<char *> purls; std::string file_name; }; @@ -373,15 +366,6 @@ std::vector<GpgME::Notation> GpgME::Signature::notations() const return result; } -std::vector<GpgME::TofuInfo> GpgME::Signature::tofuInfo() const -{ - if (isNull()) { - return std::vector<GpgME::TofuInfo>(); - } - - return d->tinfos[idx]; -} - class GpgME::Notation::Private { public: @@ -550,9 +534,6 @@ std::ostream &GpgME::operator<<(std::ostream &os, const Signature &sig) const std::vector<Notation> nota = sig.notations(); std::copy(nota.begin(), nota.end(), std::ostream_iterator<Notation>(os, "\n")); - const std::vector<TofuInfo> tinfos = sig.tofuInfo(); - std::copy(tinfos.begin(), tinfos.end(), - std::ostream_iterator<TofuInfo>(os, "\n")); } return os << ')'; } |