Whamcloud - gitweb
LU-14880 libcfs: Use crypto/sha2.h if available
[fs/lustre-release.git] / libcfs / libcfs / crypto / keysetup.c
index 0beab0c..784eacc 100644 (file)
  */
 
 #include <crypto/aes.h>
+#ifdef HAVE_CRYPTO_SHA2_HEADER
+#include <crypto/sha2.h>
+#else
 #include <crypto/sha.h>
+#endif
 #include <crypto/skcipher.h>
 #include <linux/key.h>