summaryrefslogtreecommitdiffstats
path: root/tools/gpg-card.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-02-11 14:58:17 +0100
committerWerner Koch <wk@gnupg.org>2020-02-11 14:58:17 +0100
commit6bc7318ef55017e1aca6e52899fd0b223da7cfc1 (patch)
treee45cd5ff46fc26def8b6744fb0cc4f93b2023168 /tools/gpg-card.h
parentscd:openpgp: Optional allow for lowercase keyrefs. (diff)
downloadgnupg2-6bc7318ef55017e1aca6e52899fd0b223da7cfc1.tar.xz
gnupg2-6bc7318ef55017e1aca6e52899fd0b223da7cfc1.zip
card: First code to actually create openpgp keys.
* tools/gpg-card.c (generate_all_openpgp_card_keys): Add demo key generation. (generate_key): Allow generatiing one OpenPGP key. -- This does now allows to create a single OpenPGP key optioanlly with a specified parameter. For example to create an auth key: gpg-card generate --algo=ed25519 OPENPGP.3 Using option --force will overwrite and already existing key. scdaemon does here take care of swicthing the key attributes before generating the key. TODO: We need to add some more stuff to app-openpgp so that the user is not annoyed by beeing asked to enter the Admin-PIN twice (change the key attributes clear the verification state). gpg's key generation also needs some tweaks for using an existing card key which has no key stub in private-keys-v1.d. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-rw-r--r--tools/gpg-card.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpg-card.h b/tools/gpg-card.h
index 5d75c2bb9..391241686 100644
--- a/tools/gpg-card.h
+++ b/tools/gpg-card.h
@@ -1,5 +1,5 @@
/* gpg-card.h - Common definitions for the gpg-card-tool
- * Copyright (C) 2019 g10 Code GmbH
+ * Copyright (C) 2019, 2020 g10 Code GmbH
*
* This file is part of GnuPG.
*