diff options
author | Werner Koch <[email protected]> | 2017-09-27 07:33:14 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-09-27 07:33:14 +0000 |
commit | 76c80021d4da0755dbb04bd5d42f32015cba0b9a (patch) | |
tree | 98671238c108c63f41dcdc929f9a7a52dc0a54ec /common/util.h | |
parent | gpg: Let --debug clock time sign and verify. (diff) | |
download | gnupg-76c80021d4da0755dbb04bd5d42f32015cba0b9a.tar.gz gnupg-76c80021d4da0755dbb04bd5d42f32015cba0b9a.zip |
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 <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h index c6d19c64b..f3722812d 100644 --- a/common/util.h +++ b/common/util.h @@ -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" |