diff options
author | Werner Koch <wk@gnupg.org> | 2019-04-03 15:30:10 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-04-03 15:30:10 +0200 |
commit | ec6a6779236a89d4784a6bb7de0def9cc0f9e8a4 (patch) | |
tree | 69e7cc27c2e651f5b76dc20b97d90632d050897a /g10/call-agent.h | |
parent | scd: New standard attributes $ENCRKEYID and $SIGNKEYID. (diff) | |
download | gnupg2-ec6a6779236a89d4784a6bb7de0def9cc0f9e8a4.tar.xz gnupg2-ec6a6779236a89d4784a6bb7de0def9cc0f9e8a4.zip |
gpg: Allow decryption using PIV 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/skclist.c (enum_secret_keys): Handle non-OpenPGP cards.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r-- | g10/call-agent.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h index cb874fdad..c0018a595 100644 --- a/g10/call-agent.h +++ b/g10/call-agent.h @@ -96,6 +96,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); |