aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-07-19 10:58:49 +0000
committerAndre Heinecke <[email protected]>2018-07-19 10:58:49 +0000
commit8168dfbeb12042a7f7b1bad918ef60df92bfd1a7 (patch)
tree86dd1033bb40926fec2310907f029d554e9c7f71 /lang/cpp/src
parentjson: Don't use strdup but the xtrystrdup wrapper. (diff)
downloadgpgme-8168dfbeb12042a7f7b1bad918ef60df92bfd1a7.tar.gz
gpgme-8168dfbeb12042a7f7b1bad918ef60df92bfd1a7.zip
cpp: Print origin and last update for key/uid
* lang/cpp/src/key.cpp: Print origin and last update in iostream operators.
Diffstat (limited to 'lang/cpp/src')
-rw-r--r--lang/cpp/src/key.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/cpp/src/key.cpp b/lang/cpp/src/key.cpp
index 034286f0..61b3eb77 100644
--- a/lang/cpp/src/key.cpp
+++ b/lang/cpp/src/key.cpp
@@ -1042,6 +1042,8 @@ std::ostream &operator<<(std::ostream &os, const UserID &uid)
<< "\n revoked: " << uid.isRevoked()
<< "\n invalid: " << uid.isInvalid()
<< "\n numsigs: " << uid.numSignatures()
+ << "\n origin: " << uid.origin()
+ << "\n updated: " << uid.lastUpdate()
<< "\n tofuinfo:\n" << uid.tofuInfo();
}
return os << ')';
@@ -1060,6 +1062,8 @@ std::ostream &operator<<(std::ostream &os, const Key &key)
<< "\n canEncrypt: " << key.canEncrypt()
<< "\n canCertify: " << key.canCertify()
<< "\n canAuth: " << key.canAuthenticate()
+ << "\n origin: " << key.origin()
+ << "\n updated: " << key.lastUpdate()
<< "\n uids:\n";
const std::vector<UserID> uids = key.userIDs();
std::copy(uids.begin(), uids.end(),