You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
net: sctp: remove unused multiple cookie keys
Vlad says: The whole multiple cookie keys code is completely unused and has been all this time. Noone uses anything other then the secret_key[0] since there is no changeover support anywhere. Thus, for now clean up its left-over fragments. Cc: Neil Horman <nhorman@tuxdriver.com> Cc: Vlad Yasevich <vyasevic@redhat.com> Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Acked-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0790bbb68f
commit
570617e79c
@@ -303,7 +303,7 @@ enum { SCTP_MAX_GABS = 16 };
|
||||
* to which we will raise the P-MTU.
|
||||
*/
|
||||
#define SCTP_DEFAULT_MINSEGMENT 512 /* MTU size ... if no mtu disc */
|
||||
#define SCTP_HOW_MANY_SECRETS 2 /* How many secrets I keep */
|
||||
|
||||
#define SCTP_SECRET_SIZE 32 /* Number of octets in a 256 bits. */
|
||||
|
||||
#define SCTP_SIGNATURE_SIZE 20 /* size of a SLA-1 signature */
|
||||
|
||||
@@ -1236,10 +1236,7 @@ struct sctp_endpoint {
|
||||
* Discussion in [RFC1750] can be helpful in
|
||||
* selection of the key.
|
||||
*/
|
||||
__u8 secret_key[SCTP_HOW_MANY_SECRETS][SCTP_SECRET_SIZE];
|
||||
int current_key;
|
||||
int last_key;
|
||||
int key_changed_at;
|
||||
__u8 secret_key[SCTP_SECRET_SIZE];
|
||||
|
||||
/* digest: This is a digest of the sctp cookie. This field is
|
||||
* only used on the receive path when we try to validate
|
||||
|
||||
Reference in New Issue
Block a user