1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-30 16:17:02 +01:00
James Bottomley 30c434eaf3
agent: expose shadow key type
* agent/findkey.c (agent_key_info_from_file): Add new return arg
r_shadow_info_type.
* agent/protect.c (agent_shadow_key): Factor code out to ...
(agent_shadow_key_type): new.  Add arg 'type'.
(agent_get_shadow_info): Factor code out to ...
(agent_get_shadow_info_type): new. Add arg 'shadow_type'.
(agent_is_tpm2_key): New.
(agent_get_shadow_type): New.
* agent/command.c (do_one_keyinfo): Get and check the
shadow_info_type.
--

For TPM support it is necessary to indroduce another type of shadow
key, so allow other agent functions to extract the type so they can
make the right decisions based on it.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

Added ChangeLog entries.

Signed-off-by: Werner Koch <wk@gnupg.org>
2018-03-09 08:31:17 +01:00
..
2018-03-09 08:31:17 +01:00
2015-10-28 10:20:17 +01:00
2018-03-09 08:31:17 +01:00
2018-03-09 08:31:17 +01:00
2017-12-08 07:40:06 +01:00
2018-03-09 08:31:17 +01:00
2017-03-07 19:22:48 +09:00