xfrm: Use the user specified truncation length in ESP and AH
authorMartin Willi <martin@strongswan.org>
Wed, 25 Nov 2009 00:29:53 +0000 (00:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Nov 2009 23:48:41 +0000 (15:48 -0800)
commit8f8a088c2127c729638da8f2d33860e346c01eda
treed5b81f8d1cc22d3fffbcb049c55dcc9499eb4e04
parent4447bb33f09444920a8f1d89e1540137429351b6
xfrm: Use the user specified truncation length in ESP and AH

Instead of using the hardcoded truncation for authentication
algorithms, use the truncation length specified on xfrm_state.

Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ah4.c
net/ipv4/esp4.c
net/ipv6/ah6.c
net/ipv6/esp6.c