All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.26-rc3] xfrm: Installing NULL encryption IPSec SAs fails
@ 2008-05-21 16:55 Martin Willi
  2008-05-21 20:37 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Willi @ 2008-05-21 16:55 UTC (permalink / raw)
  To: herbert; +Cc: linux-kernel

Installing NULL encryption IPSec SAs works using the .compat name
"cipher_null", but fails with the .name "ecp(cipher_null)" due the
missing check in key length verification. 

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

--- a/net/xfrm/xfrm_user.c 2008-05-21 11:34:56.000000000 -0500
+++ b/net/xfrm/xfrm_user.c 2008-05-21 11:20:08.000000000 -0500
@@ -57,6 +57,7 @@
 
        case XFRMA_ALG_CRYPT:
                if (!algp->alg_key_len &&
+                   strcmp(algp->alg_name, "ecb(cipher_null)") != 0 &&
                    strcmp(algp->alg_name, "cipher_null") != 0)
                        return -EINVAL;
                break;




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

end of thread, other threads:[~2008-05-22  0:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21 16:55 [PATCH 2.6.26-rc3] xfrm: Installing NULL encryption IPSec SAs fails Martin Willi
2008-05-21 20:37 ` David Miller
2008-05-21 23:59   ` Herbert Xu
2008-05-22  0:23     ` David Miller
2008-05-22  0:30       ` Herbert Xu
2008-05-22  0:36         ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.