cpp: Print origin and last update for key/uid
* lang/cpp/src/key.cpp: Print origin and last update in iostream operators.
This commit is contained in:
parent
af2c74d6c0
commit
8168dfbeb1
@ -1042,6 +1042,8 @@ std::ostream &operator<<(std::ostream &os, const UserID &uid)
|
|||||||
<< "\n revoked: " << uid.isRevoked()
|
<< "\n revoked: " << uid.isRevoked()
|
||||||
<< "\n invalid: " << uid.isInvalid()
|
<< "\n invalid: " << uid.isInvalid()
|
||||||
<< "\n numsigs: " << uid.numSignatures()
|
<< "\n numsigs: " << uid.numSignatures()
|
||||||
|
<< "\n origin: " << uid.origin()
|
||||||
|
<< "\n updated: " << uid.lastUpdate()
|
||||||
<< "\n tofuinfo:\n" << uid.tofuInfo();
|
<< "\n tofuinfo:\n" << uid.tofuInfo();
|
||||||
}
|
}
|
||||||
return os << ')';
|
return os << ')';
|
||||||
@ -1060,6 +1062,8 @@ std::ostream &operator<<(std::ostream &os, const Key &key)
|
|||||||
<< "\n canEncrypt: " << key.canEncrypt()
|
<< "\n canEncrypt: " << key.canEncrypt()
|
||||||
<< "\n canCertify: " << key.canCertify()
|
<< "\n canCertify: " << key.canCertify()
|
||||||
<< "\n canAuth: " << key.canAuthenticate()
|
<< "\n canAuth: " << key.canAuthenticate()
|
||||||
|
<< "\n origin: " << key.origin()
|
||||||
|
<< "\n updated: " << key.lastUpdate()
|
||||||
<< "\n uids:\n";
|
<< "\n uids:\n";
|
||||||
const std::vector<UserID> uids = key.userIDs();
|
const std::vector<UserID> uids = key.userIDs();
|
||||||
std::copy(uids.begin(), uids.end(),
|
std::copy(uids.begin(), uids.end(),
|
||||||
|
Loading…
Reference in New Issue
Block a user