]> Git Repo - linux.git/commitdiff
evm: Clean up some variables
authorStefan Berger <[email protected]>
Fri, 13 May 2022 17:41:05 +0000 (13:41 -0400)
committerMimi Zohar <[email protected]>
Mon, 16 May 2022 12:14:38 +0000 (08:14 -0400)
Make hmac_tfm static since it's not used anywhere else besides the file
it is in.

Remove declaration of hash_tfm since it doesn't exist.

Signed-off-by: Stefan Berger <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
security/integrity/evm/evm.h
security/integrity/evm/evm_crypto.c

index 0d44f41d16f87088c56a22b4713098bffbb1a059..f8b8c5004fc7c6fadba3bcdc4a6f49c44b3641cd 100644 (file)
@@ -38,9 +38,6 @@ extern int evm_initialized;
 
 extern int evm_hmac_attrs;
 
-extern struct crypto_shash *hmac_tfm;
-extern struct crypto_shash *hash_tfm;
-
 /* List of EVM protected security xattrs */
 extern struct list_head evm_config_xattrnames;
 
index 0450d79afdc8fc7dd85d77f35b82ea921957f6d7..a733aff02006381826ea7e9c1b588734bbffd4fa 100644 (file)
@@ -26,7 +26,7 @@
 static unsigned char evmkey[MAX_KEY_SIZE];
 static const int evmkey_len = MAX_KEY_SIZE;
 
-struct crypto_shash *hmac_tfm;
+static struct crypto_shash *hmac_tfm;
 static struct crypto_shash *evm_tfm[HASH_ALGO__LAST];
 
 static DEFINE_MUTEX(mutex);
This page took 0.054902 seconds and 4 git commands to generate.