aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-12-16 16:54:56 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-23 14:45:24 +0100
commit3642224ee516ab83d6bd2acae1b192ebcc3d35dd (patch)
tree71efd732e5c67955c2f6d44bff36aa5762cdbbd3 /src
parent9b858f57c507704bccac56fbb24635a93febc602 (diff)
downloadlibssh-3642224ee516ab83d6bd2acae1b192ebcc3d35dd.tar.gz
libssh-3642224ee516ab83d6bd2acae1b192ebcc3d35dd.tar.xz
libssh-3642224ee516ab83d6bd2acae1b192ebcc3d35dd.zip
legacy,keys: Fix the macro conditions
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/legacy.c b/src/legacy.c
index b92ee662..8ae3d920 100644
--- a/src/legacy.c
+++ b/src/legacy.c
@@ -353,7 +353,7 @@ void publickey_free(ssh_public_key key) {
case SSH_KEYTYPE_DSS:
#ifdef HAVE_LIBGCRYPT
gcry_sexp_release(key->dsa_pub);
-#elif HAVE_LIBCRYPTO
+#elif defined HAVE_LIBCRYPTO
DSA_free(key->dsa_pub);
#endif
break;