aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/tests/run-keylist.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-05-24 08:47:15 +0000
committerIngo Klöcker <[email protected]>2024-05-24 08:47:15 +0000
commitf0d1f2c4c746d6f98643772b4864c09f3642cd83 (patch)
tree6348dacfbb5f42e946902dc42436d165fb8df904 /lang/cpp/tests/run-keylist.cpp
parentqt,cpp: Implement adding ADSKs to existing keys (diff)
parentcpp: Add information about revocation keys to Key (diff)
downloadgpgme-f0d1f2c4c746d6f98643772b4864c09f3642cd83.tar.gz
gpgme-f0d1f2c4c746d6f98643772b4864c09f3642cd83.zip
Merge branch 'ikloecker/t7118-revkeys'
Diffstat (limited to 'lang/cpp/tests/run-keylist.cpp')
-rw-r--r--lang/cpp/tests/run-keylist.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/cpp/tests/run-keylist.cpp b/lang/cpp/tests/run-keylist.cpp
index 9e7d763c..b46a815a 100644
--- a/lang/cpp/tests/run-keylist.cpp
+++ b/lang/cpp/tests/run-keylist.cpp
@@ -160,7 +160,10 @@ main (int argc, char **argv)
std::stringstream ss;
do {
key = ctx->nextKey(err);
- ss << key << "\n\n";
+ if (!err)
+ {
+ ss << key << "\n\n";
+ }
} while (!err && !key.isNull());
std::cout << ss.str();