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
/
hkdf.c
diff --git
a/libcfs/libcfs/crypto/hkdf.c
b/libcfs/libcfs/crypto/hkdf.c
index
147f14b
..
8874bcb
100644
(file)
--- a/
libcfs/libcfs/crypto/hkdf.c
+++ b/
libcfs/libcfs/crypto/hkdf.c
@@
-14,8
+14,11
@@
*/
#include <crypto/hash.h>
+#ifdef HAVE_CRYPTO_SHA2_HEADER
+#include <crypto/sha2.h>
+#else
#include <crypto/sha.h>
-
+#endif
#include "llcrypt_private.h"
/*