diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2018-11-15 04:19:02 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2018-11-15 04:31:11 +0100 |
commit | a5542a4a702c2210facf58a98bc8d3d16089b6ab (patch) | |
tree | 8f982554c7e8724253fd15dcba28238eb62a82e5 /g10/call-agent.c | |
parent | Merge branch 'seckey-sync-work' into master (diff) | |
download | gnupg2-a5542a4a702c2210facf58a98bc8d3d16089b6ab.tar.xz gnupg2-a5542a4a702c2210facf58a98bc8d3d16089b6ab.zip |
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.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/call-agent.c')
-rw-r--r-- | g10/call-agent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c index e9ea82e4f..2dbacf4ef 100644 --- a/g10/call-agent.c +++ b/g10/call-agent.c @@ -707,6 +707,10 @@ learn_status_cb (void *opaque, const char *line) xfree (parm->private_do[no]); parm->private_do[no] = unescape_status_string (line); } + else if (keywordlen == 3 && !memcmp (keyword, "KDF", 3)) + { + parm->kdf_do_enabled = 1; + } return 0; } |