diff options
author | Werner Koch <[email protected]> | 2014-06-24 09:06:32 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-06-24 09:06:32 +0000 |
commit | a37f63d7b86b467df82ac77cfa5a75bfb1c77b7c (patch) | |
tree | b94a0e230995de6c9500483271ba99cbd149079f | |
parent | Remove thread callbacks for libgcrypt >= 1.6. (diff) | |
download | gnupg-a37f63d7b86b467df82ac77cfa5a75bfb1c77b7c.tar.gz gnupg-a37f63d7b86b467df82ac77cfa5a75bfb1c77b7c.zip |
common: Fix commit ceef5568 so that it builds with libgcrypt < 1.6
* common/ssh-utils.c (get_fingerprint): Use GCRY_PK_ECC only if
defined.
-rw-r--r-- | common/ssh-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/ssh-utils.c b/common/ssh-utils.c index 11ff0fb3f..30cb4511d 100644 --- a/common/ssh-utils.c +++ b/common/ssh-utils.c @@ -89,7 +89,9 @@ get_fingerprint (gcry_sexp_t key, void **r_fpr, size_t *r_len, elems = "pqgy"; gcry_md_write (md, "\0\0\0\x07ssh-dss", 11); break; +#if GCRYPT_VERSION_NUMBER >= 0x010600 case GCRY_PK_ECC: +#endif case GCRY_PK_ECDSA: /* We only support the 3 standard curves for now. It is just a quick hack. */ |