diff options
| author | Jakub Kicinski <[email protected]> | 2023-07-28 21:08:01 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-07-28 21:08:02 +0000 |
| commit | 05191d8896b42cacb4551409b482d321b4321eff (patch) | |
| tree | 73d34fe08c5127f99428be7f39ef1ed22b6a36e2 /net/handshake/handshake.h | |
| parent | octeontx2-af: Initialize 'cntr_val' to fix uninitialized symbol error (diff) | |
| parent | net/handshake: Trace events for TLS Alert helpers (diff) | |
| download | kernel-05191d8896b42cacb4551409b482d321b4321eff.tar.gz kernel-05191d8896b42cacb4551409b482d321b4321eff.zip | |
Merge branch 'in-kernel-support-for-the-tls-alert-protocol'
Chuck Lever says:
====================
In-kernel support for the TLS Alert protocol
IMO the kernel doesn't need user space (ie, tlshd) to handle the TLS
Alert protocol. Instead, a set of small helper functions can be used
to handle sending and receiving TLS Alerts for in-kernel TLS
consumers.
====================
Merged on top of a tag in case it's needed in the NFS tree.
Link: https://lore.kernel.org/r/169047923706.5241.1181144206068116926.stgit@oracle-102.nfsv4bat.org
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/handshake/handshake.h')
| -rw-r--r-- | net/handshake/handshake.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/handshake/handshake.h b/net/handshake/handshake.h index 4dac965c99df..a48163765a7a 100644 --- a/net/handshake/handshake.h +++ b/net/handshake/handshake.h @@ -41,8 +41,11 @@ struct handshake_req { enum hr_flags_bits { HANDSHAKE_F_REQ_COMPLETED, + HANDSHAKE_F_REQ_SESSION, }; +struct genl_info; + /* Invariants for all handshake requests for one transport layer * security protocol */ @@ -63,6 +66,9 @@ enum hp_flags_bits { HANDSHAKE_F_PROTO_NOTIFY, }; +/* alert.c */ +int tls_alert_send(struct socket *sock, u8 level, u8 description); + /* netlink.c */ int handshake_genl_notify(struct net *net, const struct handshake_proto *proto, gfp_t flags); |
