aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-11-09 16:34:15 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-11-09 18:20:40 +0100
commit043560d7dd4973910c632b46ec0d2d615a56effb (patch)
tree5a4ad5ad5813ef955720f69a61f4b1f629cfebc7
parent4b33c6bb977b9e7b8f0460f8d70d17bc9bd74434 (diff)
downloadlibssh-043560d7dd4973910c632b46ec0d2d615a56effb.tar.gz
libssh-043560d7dd4973910c632b46ec0d2d615a56effb.tar.xz
libssh-043560d7dd4973910c632b46ec0d2d615a56effb.zip
pki_gcrypt: Fix freeing of ECDSA signatures.
* src/pki.c (ssh_signature_free): Fix test for ECC using gcrypt. Signed-off-by: Justus Winter <justus@g10code.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/pki.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki.c b/src/pki.c
index 36e3c0cd..a3317cd9 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -357,7 +357,7 @@ void ssh_signature_free(ssh_signature sig)
#endif
break;
case SSH_KEYTYPE_ECDSA:
-#ifdef HAVE_LIBGCRYPT_ECC
+#ifdef HAVE_GCRYPT_ECC
gcry_sexp_release(sig->ecdsa_sig);
#elif defined(HAVE_LIBCRYPTO) && defined(HAVE_OPENSSL_ECC)
ECDSA_SIG_free(sig->ecdsa_sig);