diff options
| author | Werner Koch <[email protected]> | 2020-07-15 14:10:32 +0200 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2020-07-15 14:11:17 +0200 |
| commit | c8048bf8eb988f22b20215197f4739bedafc4264 (patch) | |
| tree | 0000825d7b32ca831032a4bf34c105de0d0ac892 /src/gpgme.h.in | |
| parent | python: Workaround for a regression in GnuPG 2.2.21 (diff) | |
| download | gpgme-c8048bf8eb988f22b20215197f4739bedafc4264.tar.gz gpgme-c8048bf8eb988f22b20215197f4739bedafc4264.zip | |
core: New keylist mode GPGME_KEYLIST_MODE_WITH_KEYGRIP.
* src/gpgme.h.in (GPGME_KEYLIST_MODE_WITH_KEYGRIP): New.
* src/gpgme-json.c (op_keylist): New flag "keygrip".
* src/engine-gpg.c (gpg_keylist_build_options): Pass the options.
* lang/cpp/src/global.h (WithKeygrip): New.
* lang/cpp/src/context.cpp: Add check.
* lang/cpp/src/key.cpp (Key::update): Handle WithKeygrip.
* lang/cpp/src/verificationresult.cpp: Ditto.
* lang/cpp/src/util.h (add_to_gpgme_keylist_mode_t): Ditto.
--
GnuPG-bug-id: 4939
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/gpgme.h.in')
| -rw-r--r-- | src/gpgme.h.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in index a52901bb..4efa325d 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -379,6 +379,7 @@ gpgme_protocol_t; #define GPGME_KEYLIST_MODE_SIG_NOTATIONS 8 #define GPGME_KEYLIST_MODE_WITH_SECRET 16 #define GPGME_KEYLIST_MODE_WITH_TOFU 32 +#define GPGME_KEYLIST_MODE_WITH_KEYGRIP 64 #define GPGME_KEYLIST_MODE_EPHEMERAL 128 #define GPGME_KEYLIST_MODE_VALIDATE 256 @@ -600,7 +601,7 @@ struct _gpgme_subkey /* The name of the curve for ECC algorithms or NULL. */ char *curve; - /* The keygrip of the subkey in hex digit form or NULL if not availabale. */ + /* The keygrip of the subkey in hex digit form or NULL if not available. */ char *keygrip; }; typedef struct _gpgme_subkey *gpgme_subkey_t; |
