diff options
| author | James Bottomley via Gnupg-devel <[email protected]> | 2020-06-14 17:26:45 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2020-06-24 08:11:47 +0000 |
| commit | 0e3b2955aee2b9b62707d138caa4329eb31d4f93 (patch) | |
| tree | b87e44c6513af97b7abedd070e364ef199004aa5 /agent/findkey.c | |
| parent | gpg,agent: Support Ed448 signing. (diff) | |
| download | gnupg-0e3b2955aee2b9b62707d138caa4329eb31d4f93.tar.gz gnupg-0e3b2955aee2b9b62707d138caa4329eb31d4f93.zip | |
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 <[email protected]>
Minor editorial changes by wk
Diffstat (limited to 'agent/findkey.c')
| -rw-r--r-- | agent/findkey.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/agent/findkey.c b/agent/findkey.c index 1494615c4..0951a754e 100644 --- a/agent/findkey.c +++ b/agent/findkey.c @@ -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); |
