mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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. -- Signed-off-by: Werner Koch <wk@gnupg.org> (cherry picked from commitec6a677923
) This commit also incorporates "g10: Move enum_secret_keys to skclist.c." Which was started with commit03a8de7def
on master about a year ago. Signed-off-by: Werner Koch <wk@gnupg.org> GnuPG-bug-id: 4681
This commit is contained in:
parent
23784f8bf0
commit
9a317557c5
5 changed files with 400 additions and 174 deletions
|
@ -94,6 +94,9 @@ int agent_scd_serialno (char **r_serialno, const char *demand);
|
|||
/* Send an APDU to the card. */
|
||||
gpg_error_t agent_scd_apdu (const char *hexapdu, unsigned int *r_sw);
|
||||
|
||||
/* Get attribute NAME from the card and store at R_VALUE. */
|
||||
gpg_error_t agent_scd_getattr_one (const char *name, char **r_value);
|
||||
|
||||
/* Update INFO with the attribute NAME. */
|
||||
int agent_scd_getattr (const char *name, struct agent_card_info_s *info);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue