diff options
author | Andre Heinecke <[email protected]> | 2018-07-19 10:58:49 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2018-07-19 10:58:49 +0000 |
commit | 8168dfbeb12042a7f7b1bad918ef60df92bfd1a7 (patch) | |
tree | 86dd1033bb40926fec2310907f029d554e9c7f71 /lang/cpp/src | |
parent | json: Don't use strdup but the xtrystrdup wrapper. (diff) | |
download | gpgme-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.cpp | 4 |
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(), |