mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
card: Display if KDF is enabled or not.
* g10/call-agent.h (kdf_do_enabled): New field.
* g10/call-agent.c (learn_status_cb): Set kdf_do_enabled if available.
* g10/card-util.c (current_card_status): Inform the availability.
--
Cherry pick of master commit: a5542a4a70
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
293001e2c6
commit
751ff784e5
3 changed files with 12 additions and 2 deletions
|
@ -71,6 +71,7 @@ struct agent_card_info_s
|
|||
unsigned int kdf:1; /* KDF object to support PIN hashing available. */
|
||||
} extcap;
|
||||
unsigned int status_indicator;
|
||||
int kdf_do_enabled; /* Card has a KDF object */
|
||||
};
|
||||
|
||||
|
||||
|
@ -192,14 +193,14 @@ gpg_error_t agent_keywrap_key (ctrl_t ctrl, int forexport,
|
|||
gpg_error_t agent_import_key (ctrl_t ctrl, const char *desc,
|
||||
char **cache_nonce_addr, const void *key,
|
||||
size_t keylen, int unattended, int force,
|
||||
u32 *keyid, u32 *mainkeyid, int pubkey_algo);
|
||||
u32 *keyid, u32 *mainkeyid, int pubkey_algo);
|
||||
|
||||
/* Receive a key from the agent. */
|
||||
gpg_error_t agent_export_key (ctrl_t ctrl, const char *keygrip,
|
||||
const char *desc, int openpgp_protected,
|
||||
char **cache_nonce_addr,
|
||||
unsigned char **r_result, size_t *r_resultlen,
|
||||
u32 *keyid, u32 *mainkeyid, int pubkey_algo);
|
||||
u32 *keyid, u32 *mainkeyid, int pubkey_algo);
|
||||
|
||||
/* Delete a key from the agent. */
|
||||
gpg_error_t agent_delete_key (ctrl_t ctrl, const char *hexkeygrip,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue