Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-14880 libcfs: Use crypto/sha2.h if available
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
crypto
/
keysetup.c
diff --git
a/libcfs/libcfs/crypto/keysetup.c
b/libcfs/libcfs/crypto/keysetup.c
index
0beab0c
..
784eacc
100644
(file)
--- a/
libcfs/libcfs/crypto/keysetup.c
+++ b/
libcfs/libcfs/crypto/keysetup.c
@@
-13,7
+13,11
@@
*/
#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>