aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2022-04-27 15:21:04 +0000
committerIngo Klöcker <[email protected]>2022-04-27 15:21:04 +0000
commitdea872f21ff77cd58bafe0966d89d6331c8d2e07 (patch)
tree9df3abcc503e3027c998cd0ee105a2496396c91c /lang/cpp/src/context.cpp
parentcore: Support --locate-external-keys command of gpg (diff)
downloadgpgme-dea872f21ff77cd58bafe0966d89d6331c8d2e07.tar.gz
gpgme-dea872f21ff77cd58bafe0966d89d6331c8d2e07.zip
cpp: Support new keylist modes
* lang/cpp/src/global.h (ForceExtern, LocateExternal, KeyListModeMask): New. * lang/cpp/src/context.cpp (operator<<): Add check. * lang/cpp/src/util.h (gpgme_keylist_mode_t, convert_from_gpgme_keylist_mode_t): Handle ForceExtern. * lang/cpp/tests/run-getkey.cpp (show_usage, main): Add arguments --force-extern and --locate-external. * lang/cpp/tests/run-keylist.cpp (show_usage, main): Ditto. -- GnuPG-bug-id: 5951
Diffstat (limited to 'lang/cpp/src/context.cpp')
-rw-r--r--lang/cpp/src/context.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp
index 6d840f06..89bc3fd7 100644
--- a/lang/cpp/src/context.cpp
+++ b/lang/cpp/src/context.cpp
@@ -1849,6 +1849,7 @@ std::ostream &operator<<(std::ostream &os, KeyListMode mode)
CHECK(WithTofu);
CHECK(WithKeygrip);
CHECK(WithSecret);
+ CHECK(ForceExtern);
#undef CHECK
return os << ')';
}