summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-03-25 20:08:26 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2018-03-27 11:55:28 +0200
commitf1c647d4dba7d37d2c021c63b1c8b8f6613afcf0 (patch)
tree2d318dccfe51ac5a5857d2ad17e9641302d06f3d
parentd1cb5414fd42af38689018d7d5eea34fcfd64c06 (diff)
downloadgnutls-f1c647d4dba7d37d2c021c63b1c8b8f6613afcf0.tar.gz
nettle: corrected typo in version check for compatibility mode with 3.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r--lib/nettle/pk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c
index 5af742b540..1c380a5e28 100644
--- a/lib/nettle/pk.c
+++ b/lib/nettle/pk.c
@@ -768,7 +768,7 @@ _wrap_nettle_pk_verify(gnutls_pk_algorithm_t algo,
return ret;
}
-#if NETTLE_MAJOR_VERSION < 3 || (NETTLE_MAJOR_VERSION == 3 && NETTLE_MINOR_VERSION < 4)
+#if !defined(NETTLE_VERSION_MAJOR) || (NETTLE_VERSION_MAJOR < 3 || (NETTLE_VERSION_MAJOR == 3 && NETTLE_VERSION_MINOR < 4))
# ifdef ENABLE_NON_SUITEB_CURVES
# define nettle_get_secp_192r1() &nettle_secp_192r1
# define nettle_get_secp_224r1() &nettle_secp_224r1