]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
nettle: corrected typo in version check for compatibility mode with 3.3
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 25 Mar 2018 18:08:26 +0000 (20:08 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 25 Mar 2018 18:12:44 +0000 (20:12 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
lib/nettle/pk.c

index 58a0414971cdaf13fffea7e4b3ea7770d4c2268c..7137dc88fae6ed91d9d8ec1a1fb05248bb5d104f 100644 (file)
@@ -1062,7 +1062,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