From 799b168243e6499ac01bf59e0656547f353a2589 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Tue, 23 Aug 2016 16:40:21 +0200 Subject: 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. --- lang/cpp/src/key.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lang/cpp/src/key.cpp') diff --git a/lang/cpp/src/key.cpp b/lang/cpp/src/key.cpp index d99c5ec9..68d7685f 100644 --- a/lang/cpp/src/key.cpp +++ b/lang/cpp/src/key.cpp @@ -23,6 +23,7 @@ #include #include "util.h" +#include "tofuinfo.h" #include @@ -625,6 +626,14 @@ bool UserID::isInvalid() const return uid && uid->invalid; } +TofuInfo UserID::tofuInfo() const +{ + if (!uid) { + return TofuInfo(); + } + return TofuInfo(uid->tofu); +} + // // // class Signature -- cgit v1.2.3