mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
833f27a6a7
commit
0107984f9f
3 changed files with 90 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue