Whamcloud - gitweb
LU-13683 lfs: return -ENOENT when invoked on non-existing file
[fs/lustre-release.git] / contrib / scripts / crypto_patches / 0005_crypto_tfm_req_forbid_weak_keys.patch
1 Linux 5.0 (commit 231baecdef7a) renames CRYPTO_TFM_REQ_WEAK_KEY to
2 CRYPTO_TFM_REQ_FORBID_WEAK_KEYS.
3
4 --- a/libcfs/libcfs/crypto/llcrypt_private.h
5 +++ b/libcfs/libcfs/crypto/llcrypt_private.h
6 @@ -15,6 +15,10 @@
7  #include <crypto/hash.h>
8  #include <lustre_disk.h>
9  
10 +#ifndef CRYPTO_TFM_REQ_FORBID_WEAK_KEYS
11 +#define CRYPTO_TFM_REQ_FORBID_WEAK_KEYS CRYPTO_TFM_REQ_WEAK_KEY
12 +#endif
13 +
14  #define CONST_STRLEN(str)      (sizeof(str) - 1)
15  
16  #define FS_KEY_DERIVATION_NONCE_SIZE   16