aboutsummaryrefslogtreecommitdiffstats
path: root/tools/card-tool.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-01-30 16:48:41 +0000
committerWerner Koch <[email protected]>2019-01-30 16:51:32 +0000
commit0107984f9f55f84e4842642bceefd2181ec09dab (patch)
treee4bcf4784d85992061aab1001271ad9c2571f864 /tools/card-tool.h
parentcard: Print matching OpenPGP and X.509 data. (diff)
downloadgnupg-0107984f9f55f84e4842642bceefd2181ec09dab.tar.gz
gnupg-0107984f9f55f84e4842642bceefd2181ec09dab.zip
card: Cache the results from gpg and gpgsm.
* tools/card-tool-keys.c (keyblock_cache): New var. (release_keyblock): Factor code out to a new do_release_keyblock. Add a cache. (flush_keyblock_cache): New. (get_matching_keys): Use the cache. * tools/gpg-card-tool.c (cmds): Add command "reset". (interactive_loop): Implement reset. -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/card-tool.h')
-rw-r--r--tools/card-tool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/card-tool.h b/tools/card-tool.h
index d502ecb58..05d6ea47d 100644
--- a/tools/card-tool.h
+++ b/tools/card-tool.h
@@ -181,6 +181,7 @@ typedef struct card_info_s *card_info_t;
/*-- card-tool-keys.c --*/
void release_keyblock (keyblock_t keyblock);
+void flush_keyblock_cache (void);
gpg_error_t get_matching_keys (const unsigned char *keygrip, int protocol,
keyblock_t *r_keyblock);
gpg_error_t test_get_matching_keys (const char *hexgrip);