Commit 7db515f9 authored by David S. Miller's avatar David S. Miller

[IPSEC]: Dont check algorithm availability unless CONFIG_CRYPTO.

parent 319ec78c
...@@ -314,6 +314,7 @@ void xfrm_probe_algs(void) ...@@ -314,6 +314,7 @@ void xfrm_probe_algs(void)
BUG_ON(in_softirq()); BUG_ON(in_softirq());
#ifdef CONFIG_CRYPTO
for (i = 0; i < aalg_entries(); i++) { for (i = 0; i < aalg_entries(); i++) {
status = crypto_alg_available(aalg_list[i].name, 0); status = crypto_alg_available(aalg_list[i].name, 0);
if (aalg_list[i].available != status) if (aalg_list[i].available != status)
...@@ -325,6 +326,7 @@ void xfrm_probe_algs(void) ...@@ -325,6 +326,7 @@ void xfrm_probe_algs(void)
if (ealg_list[i].available != status) if (ealg_list[i].available != status)
ealg_list[i].available = status; ealg_list[i].available = status;
} }
#endif
} }
int xfrm_count_auth_supported(void) int xfrm_count_auth_supported(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment