public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.20-rc1] xfrm: Algorithm lookup using .compat name
@ 2006-12-22 16:26 Martin Willi
  2006-12-22 21:04 ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Willi @ 2006-12-22 16:26 UTC (permalink / raw)
  To: herbert; +Cc: linux-kernel

Installing an IPsec SA using old algorithm names (.compat) does not work
if the algorithm is not already loaded. When not using the PF_KEY
interface, algorithms are not preloaded in xfrm_probe_algs() and
installing a IPsec SA fails.

Signed-off-by: Martin Willi <martin@strongswan.org>

--- a/net/xfrm/xfrm_algo.c      2006-12-22 16:43:31.000000000 +0100
+++ b/net/xfrm/xfrm_algo.c      2006-12-22 16:58:19.000000000 +0100
@@ -399,7 +399,8 @@ static struct xfrm_algo_desc *xfrm_get_b
                if (!probe)
                    break;
 
-               status = crypto_has_alg(name, type, mask |
CRYPTO_ALG_ASYNC);
+               status = crypto_has_alg(list[i].name, type,
+                               mask | CRYPTO_ALG_ASYNC);
                if (!status)
                    break;

 




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-29  9:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-22 16:26 [PATCH 2.6.20-rc1] xfrm: Algorithm lookup using .compat name Martin Willi
2006-12-22 21:04 ` Herbert Xu
2006-12-29  5:28   ` David Miller
2006-12-29  9:01     ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox