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:
parent
d75c118aae
commit
80498ab662
@ -224,6 +224,9 @@ GpgME::Signature::Summary GpgME::Signature::summary() const
|
|||||||
if (sigsum & GPGME_SIGSUM_SYS_ERROR) {
|
if (sigsum & GPGME_SIGSUM_SYS_ERROR) {
|
||||||
result |= SysError;
|
result |= SysError;
|
||||||
}
|
}
|
||||||
|
if (sigsum & GPGME_SIGSUM_TOFU_CONFLICT) {
|
||||||
|
result |= TofuConflict;
|
||||||
|
}
|
||||||
return static_cast<Summary>(result);
|
return static_cast<Summary>(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -520,6 +523,7 @@ std::ostream &GpgME::operator<<(std::ostream &os, Signature::Summary summary)
|
|||||||
OUTPUT(CrlTooOld);
|
OUTPUT(CrlTooOld);
|
||||||
OUTPUT(BadPolicy);
|
OUTPUT(BadPolicy);
|
||||||
OUTPUT(SysError);
|
OUTPUT(SysError);
|
||||||
|
OUTPUT(TofuConflict);
|
||||||
#undef OUTPUT
|
#undef OUTPUT
|
||||||
return os << ')';
|
return os << ')';
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,8 @@ public:
|
|||||||
CrlMissing = 0x080,
|
CrlMissing = 0x080,
|
||||||
CrlTooOld = 0x100,
|
CrlTooOld = 0x100,
|
||||||
BadPolicy = 0x200,
|
BadPolicy = 0x200,
|
||||||
SysError = 0x400
|
SysError = 0x400,
|
||||||
|
TofuConflict= 0x800
|
||||||
};
|
};
|
||||||
Summary summary() const;
|
Summary summary() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user