1 Linux 5.0 (commit 231baecdef7a) renames CRYPTO_TFM_REQ_WEAK_KEY to
2 CRYPTO_TFM_REQ_FORBID_WEAK_KEYS.
4 --- a/libcfs/libcfs/crypto/llcrypt_private.h
5 +++ b/libcfs/libcfs/crypto/llcrypt_private.h
7 #include <crypto/hash.h>
8 #include <lustre_disk.h>
10 +#ifndef CRYPTO_TFM_REQ_FORBID_WEAK_KEYS
11 +#define CRYPTO_TFM_REQ_FORBID_WEAK_KEYS CRYPTO_TFM_REQ_WEAK_KEY
14 #define CONST_STRLEN(str) (sizeof(str) - 1)
16 #define FS_KEY_DERIVATION_NONCE_SIZE 16