summaryrefslogtreecommitdiff
path: root/net/handshake/handshake.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2023-07-27 13:36:17 -0400
committerJakub Kicinski <kuba@kernel.org>2023-07-28 14:07:59 -0700
commit35b1b538d422fd765d88fbdaaa6e06ee466d9f93 (patch)
treea969b69b78dbaf4ec47f5f8d8929c81fd0c9bfe7 /net/handshake/handshake.h
parent0257427146e84af365612508ace9d0d87dfb7d7a (diff)
net/handshake: Add API for sending TLS Closure alerts
This helper sends an alert only if a TLS session was established. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Link: https://lore.kernel.org/r/169047936730.5241.618595693821012638.stgit@oracle-102.nfsv4bat.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/handshake/handshake.h')
-rw-r--r--net/handshake/handshake.h6
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);