]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
hkdf: refer to nettle's hkdf.h when available
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 29 Nov 2017 15:21:45 +0000 (16:21 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 19 Feb 2018 14:29:36 +0000 (15:29 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/nettle/int/hkdf.h

index a7101da3a88b8972e812be1a3cb2f81bd6440f57..ba84684d830758a4bbec203e64b21a427ac310de 100644 (file)
 #ifndef _HKDF_H_INCLUDED
 #define _HKDF_H_INCLUDED
 
+#include <nettle/version.h>
+#if NETTLE_VERSION_MAJOR > 3 || (NETTLE_VERSION_MAJOR == 3 && NETTLE_VERSION_MINOR >= 4)
+# include <nettle/hkdf.h>
+#else
+
 #include <nettle/nettle-meta.h>
 
 #ifdef __cplusplus
@@ -63,4 +68,7 @@ extern "C" {
 #ifdef __cplusplus
 }
 #endif
+
+#endif /* NETTLE_VERSION_MAJOR etc. */
+
 #endif                         /* NETTLE_HKDF_H_INCLUDED */