mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
agent: expose shadow key 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> Minor editorial changes by wk
This commit is contained in:
parent
a763bb2580
commit
0e3b2955ae
4 changed files with 90 additions and 17 deletions
|
@ -1320,7 +1320,8 @@ agent_key_available (const unsigned char *grip)
|
|||
S-expression. */
|
||||
gpg_error_t
|
||||
agent_key_info_from_file (ctrl_t ctrl, const unsigned char *grip,
|
||||
int *r_keytype, unsigned char **r_shadow_info)
|
||||
int *r_keytype, unsigned char **r_shadow_info,
|
||||
unsigned char **r_shadow_info_type)
|
||||
{
|
||||
gpg_error_t err;
|
||||
unsigned char *buf;
|
||||
|
@ -1367,7 +1368,7 @@ agent_key_info_from_file (ctrl_t ctrl, const unsigned char *grip,
|
|||
const unsigned char *s;
|
||||
size_t n;
|
||||
|
||||
err = agent_get_shadow_info (buf, &s);
|
||||
err = agent_get_shadow_info_type (buf, &s, r_shadow_info_type);
|
||||
if (!err)
|
||||
{
|
||||
n = gcry_sexp_canon_len (s, 0, NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue