]> git.baikalelectronics.ru Git - kernel.git/commit
[SCTP]: Add check for hmac_algo parameter in sctp_verify_param()
authorWei Yongjun <yjwei@cn.fujitsu.com>
Sun, 13 Apr 2008 01:39:19 +0000 (18:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Apr 2008 01:39:19 +0000 (18:39 -0700)
commitfd6cee0d4088d87e871291d522ac76de877a2fed
tree7a5084f9eac6c5556d792d0503158860b046201f
parent558588ebfd80ffa6fc913cc00f968878675a1794
[SCTP]: Add check for hmac_algo parameter in sctp_verify_param()

RFC 4890 has the following text:

  The HMAC algorithm based on SHA-1 MUST be supported and
  included in the HMAC-ALGO parameter.

As a result, we need to check in sctp_verify_param() that HMAC_SHA1 is
present in the list.  If not, we should probably treat this as a
protocol violation.

It should also be a protocol violation if the HMAC parameter is empty.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_make_chunk.c