From a37f63d7b86b467df82ac77cfa5a75bfb1c77b7c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 24 Jun 2014 11:06:32 +0200 Subject: 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. --- common/ssh-utils.c | 2 ++ 1 file changed, 2 insertions(+) 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. */ -- cgit v1.2.3