]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: add sockopt SCTP_AUTH_DEACTIVATE_KEY
authorXin Long <lucien.xin@gmail.com>
Wed, 14 Mar 2018 11:05:32 +0000 (19:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Mar 2018 17:48:27 +0000 (13:48 -0400)
commit8f5cc4a5f914e9ef0d43b1233a8867d40c0ff200
treeaae57064566efa950941a511a38f9bd0de166076
parent7448061c920a3dababe3fbd3a513f4ea9730e137
sctp: add sockopt SCTP_AUTH_DEACTIVATE_KEY

This patch is to add sockopt SCTP_AUTH_DEACTIVATE_KEY, as described in
section 8.3.4 of RFC6458.

This set option indicates that the application will no longer send user
messages using the indicated key identifier.

Note that RFC requires that only deactivated keys that are no longer used
by an association can be deleted, but for the backward compatibility, it
is not to check deactivated when deleting or replacing one sh_key.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/auth.h
include/uapi/linux/sctp.h
net/sctp/auth.c
net/sctp/socket.c