diff options
author | Werner Koch <[email protected]> | 2019-01-30 14:01:34 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-01-30 14:01:34 +0000 |
commit | 833f27a6a7e059e38bccaf360f05e72e4403545a (patch) | |
tree | 3de745f43d9d3d12fa19d551ea7225f3f0854def /common/util.h | |
parent | gpg: Emit an ERROR status if no key was found with --list-keys. (diff) | |
download | gnupg-833f27a6a7e059e38bccaf360f05e72e4403545a.tar.gz gnupg-833f27a6a7e059e38bccaf360f05e72e4403545a.zip |
card: Print matching OpenPGP and X.509 data.
* tools/card-tool-keys.c: New.
* tools/Makefile.am (gpg_card_tool_SOURCES): Add file.
* tools/card-tool.h (struct pubkey_s, pubkey_t): New.
(struct userid_s, userid_t): New.
(struct keyblock_s, keyblock_t): New.
* common/util.h (GNUPG_PROTOCOL_): New const
* tools/gpg-card-tool.c (aTest): Add temporary command.
(list_one_kinfo): Print info from gpg and gpgsm.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index a4b1cbd79..863f9e36f 100644 --- a/common/util.h +++ b/common/util.h @@ -262,6 +262,13 @@ void gnupg_module_name_flush_some (void); void gnupg_set_builddir (const char *newdir); +/* A list of constants to identify protocols. This is used by tools + * which need to distinguish between the different protocols + * implemented by GnuPG. May be used as bit flags. */ +#define GNUPG_PROTOCOL_OPENPGP 1 /* The one and only (gpg). */ +#define GNUPG_PROTOCOL_CMS 2 /* The core of S/MIME (gpgsm) */ +#define GNUPG_PROTOCOL_SSH_AGENT 4 /* Out ssh-agent implementation */ + /*-- gpgrlhelp.c --*/ void gnupg_rl_initialize (void); |