]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Store aalg in xfrm_state with a user specified truncation length
authorMartin Willi <martin@strongswan.org>
Wed, 25 Nov 2009 00:29:52 +0000 (00:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Nov 2009 23:48:38 +0000 (15:48 -0800)
commit787675bba5e32e7666b264403b456c2a1d6bd986
tree0aeadd5f09b412380974d3155255ba8db27dd1ed
parentef551d034a69497fe06bc04dfb3f73e00290c99c
xfrm: Store aalg in xfrm_state with a user specified truncation length

Adding a xfrm_state requires an authentication algorithm specified
either as xfrm_algo or as xfrm_algo_auth with a specific truncation
length. For compatibility, both attributes are dumped to userspace,
and we also accept both attributes, but prefer the new syntax.

If no truncation length is specified, or the authentication algorithm
is specified using xfrm_algo, the truncation length from the algorithm
description in the kernel is used.

Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/xfrm/xfrm_state.c
net/xfrm/xfrm_user.c