diff options
-rw-r--r-- | net/xfrm/xfrm_algo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index f07224d8b88f..250e567ba3d6 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c | |||
@@ -9,6 +9,8 @@ | |||
9 | * any later version. | 9 | * any later version. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <crypto/hash.h> | ||
13 | #include <crypto/skcipher.h> | ||
12 | #include <linux/module.h> | 14 | #include <linux/module.h> |
13 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
14 | #include <linux/pfkeyv2.h> | 16 | #include <linux/pfkeyv2.h> |
@@ -782,14 +784,13 @@ void xfrm_probe_algs(void) | |||
782 | BUG_ON(in_softirq()); | 784 | BUG_ON(in_softirq()); |
783 | 785 | ||
784 | for (i = 0; i < aalg_entries(); i++) { | 786 | for (i = 0; i < aalg_entries(); i++) { |
785 | status = crypto_has_hash(aalg_list[i].name, 0, | 787 | status = crypto_has_ahash(aalg_list[i].name, 0, 0); |
786 | CRYPTO_ALG_ASYNC); | ||
787 | if (aalg_list[i].available != status) | 788 | if (aalg_list[i].available != status) |
788 | aalg_list[i].available = status; | 789 | aalg_list[i].available = status; |
789 | } | 790 | } |
790 | 791 | ||
791 | for (i = 0; i < ealg_entries(); i++) { | 792 | for (i = 0; i < ealg_entries(); i++) { |
792 | status = crypto_has_ablkcipher(ealg_list[i].name, 0, 0); | 793 | status = crypto_has_skcipher(ealg_list[i].name, 0, 0); |
793 | if (ealg_list[i].available != status) | 794 | if (ealg_list[i].available != status) |
794 | ealg_list[i].available = status; | 795 | ealg_list[i].available = status; |
795 | } | 796 | } |