Home GnuPG
Diffusion GnuPG 255d33d65126

gpg: Make quick-gen-key with algo "card" work for keys without keytime

Description

gpg: Make quick-gen-key with algo "card" work for keys without keytime

* g10/keygen.c (quick_generate_keypair): Set pCARDKEY flag if algostr
is "card" or "card/...".

For keys stored on NetKey cards or PIV cards we do not necessarily
know the creation time. Therefore set the cardkey flag if the generation
of a key from the keys available on the currently inserted smartcard
is requested with the special algo "card" or, in case of the extended
unattended mode, with an algo like "card/sign".

  • GnuPG-bug-id: T5141
  • Signed-off-by: Ingo Klöcker <dev@ingo-kloecker.de>

Details