Skip to content

sctp: add support for some sctp auth APIs from RFC6458

Xin Long linux-sctp netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sctp: add refcnt support for sh_keyinclude/net/sctp/auth.h include/net/sctp/sm.h include/net/sctp/structs.h +6 more+104 -584 replies
2/5sctp: add support for SCTP AUTH Information for sendmsginclude/net/sctp/structs.h include/uapi/linux/sctp.h net/sctp/chunk.c +1 more+47 -21 reply
3/5sctp: add sockopt SCTP_AUTH_DEACTIVATE_KEYinclude/net/sctp/auth.h include/uapi/linux/sctp.h net/sctp/auth.c +1 more+81 -91 reply
4/5sctp: add SCTP_AUTH_FREE_KEY type for AUTHENTICATION_EVENTinclude/uapi/linux/sctp.h net/sctp/auth.c net/sctp/sm_make_chunk.c +2 more+57 -41 reply
5/5sctp: add SCTP_AUTH_NO_AUTH type for AUTHENTICATION_EVENTinclude/net/sctp/command.h include/uapi/linux/sctp.h net/sctp/sm_sideeffect.c +1 more+56 -21 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarcelo Ricardo LeitnerNeil Horman
SeriesA-b
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/5] sctp: add support for some sctp auth APIs from RFC6458

This patchset mainly adds support for SCTP AUTH Information for sendmsg, described in RFC6458:

5.3.8. SCTP AUTH Information Structure (SCTP_AUTHINFO)

and also adds a sockopt described in RFC6458:

8.3.4. Deactivate a Shared Key (SCTP_AUTH_DEACTIVATE_KEY)

and two types of events for AUTHENTICATION_EVENT described in RFC6458:

6.1.8. SCTP_AUTHENTICATION_EVENT:
- SCTP_AUTH_NO_AUTH
- SCTP_AUTH_FREE_KEY

After this patchset, we have fully support for sctp_sendv in kernel.

Note that this patchset won't touch that sctp options merge conflict.

Xin Long (5):
sctp: add refcnt support for sh_key
sctp: add support for SCTP AUTH Information for sendmsg
sctp: add sockopt SCTP_AUTH_DEACTIVATE_KEY
sctp: add SCTP_AUTH_FREE_KEY type for AUTHENTICATION_EVENT
sctp: add SCTP_AUTH_NO_AUTH type for AUTHENTICATION_EVENT

 include/net/sctp/auth.h    |  21 ++++---
 include/net/sctp/command.h |   1 +
 include/net/sctp/sm.h      |   3 +-
 include/net/sctp/structs.h |  10 +++-
 include/uapi/linux/sctp.h  |  22 ++++++-
 net/sctp/auth.c            | 146 +++++++++++++++++++++++++++++++--------------
 net/sctp/chunk.c           |  14 +++++
 net/sctp/output.c          |  18 +++++-
 net/sctp/sm_make_chunk.c   |  33 +++++++++-
 net/sctp/sm_sideeffect.c   |  13 ++++
 net/sctp/sm_statefuns.c    |  56 ++++++++++++++---
 net/sctp/socket.c          |  77 ++++++++++++++++++++++++
 12 files changed, 342 insertions(+), 72 deletions(-)
Signature · 1 line
2.1.0