Cpp: Add support for TOFU_CONFLICT sigsum

* lang/cpp/src/verificationresult.cpp (GpgME::Signature::Summary):
Handle TOFU_CONFLICT.
* lang/cpp/src/verificationresult.h (Summary): Add TofuConflict.
This commit is contained in:
Andre Heinecke 2016-07-04 11:31:01 +02:00
parent d75c118aae
commit 80498ab662
2 changed files with 6 additions and 1 deletions

View File

@ -224,6 +224,9 @@ GpgME::Signature::Summary GpgME::Signature::summary() const
if (sigsum & GPGME_SIGSUM_SYS_ERROR) {
result |= SysError;
}
if (sigsum & GPGME_SIGSUM_TOFU_CONFLICT) {
result |= TofuConflict;
}
return static_cast<Summary>(result);
}
@ -520,6 +523,7 @@ std::ostream &GpgME::operator<<(std::ostream &os, Signature::Summary summary)
OUTPUT(CrlTooOld);
OUTPUT(BadPolicy);
OUTPUT(SysError);
OUTPUT(TofuConflict);
#undef OUTPUT
return os << ')';
}

View File

@ -115,7 +115,8 @@ public:
CrlMissing = 0x080,
CrlTooOld = 0x100,
BadPolicy = 0x200,
SysError = 0x400
SysError = 0x400,
TofuConflict= 0x800
};
Summary summary() const;