summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-11-29 16:21:45 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-11-29 16:41:28 +0100
commit8d0217327fb18d825c29ef3bdeed2812e4e5487d (patch)
tree4a65d064a6a7e893e8b7053e51775825c6db787c
parenta4c65c4a55f6fba97ef4cc11409a4983b0a581af (diff)
downloadgnutls-8d0217327fb18d825c29ef3bdeed2812e4e5487d.tar.gz
hkdf: refer to nettle's hkdf.h when available
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/nettle/int/hkdf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/nettle/int/hkdf.h b/lib/nettle/int/hkdf.h
index a7101da3a8..ba84684d83 100644
--- a/lib/nettle/int/hkdf.h
+++ b/lib/nettle/int/hkdf.h
@@ -34,6 +34,11 @@
#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 */