mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
common: Add constant KEYGRIP_LEN.
* common/util.h (KEYGRIP_LEN): New. * g10/call-agent.c (agent_probe_any_secret_key): Use that constant. * g10/keyid.c (keygrip_from_pk): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
6aa4478c78
commit
76c80021d4
3 changed files with 9 additions and 4 deletions
|
@ -59,6 +59,11 @@
|
|||
/* Hash function used with libksba. */
|
||||
#define HASH_FNC ((void (*)(void *, const void*,size_t))gcry_md_write)
|
||||
|
||||
/* The length of the keygrip. This is a SHA-1 hash of the key
|
||||
* parameters as generated by gcry_pk_get_keygrip. */
|
||||
#define KEYGRIP_LEN 20
|
||||
|
||||
|
||||
/* Get all the stuff from jnlib. */
|
||||
#include "../common/logging.h"
|
||||
#include "../common/argparse.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue