Home GnuPG
Diffusion GnuPG 9a317557c58d

gpg: Allow decryption using non-OpenPGP cards.

Description

gpg: Allow decryption using non-OpenPGP cards.

* g10/call-agent.c (struct getattr_one_parm_s): New.
(getattr_one_status_cb): New.
(agent_scd_getattr_one): New.
* g10/pubkey-enc.c (get_it): Allow the standard leading zero byte from
pkcs#1.
* g10/getkey.c (enum_secret_keys): Move to...
* g10/skclist.c (enum_secret_keys): here and handle non-OpenPGP cards.

(cherry picked from commit ec6a6779236a89d4784a6bb7de0def9cc0f9e8a4)

This commit also incorporates "g10: Move enum_secret_keys to
skclist.c." Which was started with
commit 03a8de7def4195b9accde47c1dcb84279361936d
on master about a year ago.

  • Signed-off-by: Werner Koch <wk@gnupg.org>
  • GnuPG-bug-id: T4681

Details

Provenance
wernerAuthored on Apr 3 2019, 3:30 PM
Parents
rG23784f8bf0ac: scd: New standard attributes $ENCRKEYID and $SIGNKEYID.
Branches
Unknown
Tags
Unknown
Tasks
T4681: Allow non-OpenPGP cards with gpg 2.2