diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-07-27 19:36:17 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-07-28 23:07:59 +0200 |
commit | 35b1b538d422fd765d88fbdaaa6e06ee466d9f93 (patch) | |
tree | a969b69b78dbaf4ec47f5f8d8929c81fd0c9bfe7 /include/net/handshake.h | |
parent | net/tls: Add TLS Alert definitions (diff) | |
download | linux-35b1b538d422fd765d88fbdaaa6e06ee466d9f93.tar.xz linux-35b1b538d422fd765d88fbdaaa6e06ee466d9f93.zip |
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 'include/net/handshake.h')
-rw-r--r-- | include/net/handshake.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/handshake.h b/include/net/handshake.h index 2e26e436e85f..bb88dfa6e3c9 100644 --- a/include/net/handshake.h +++ b/include/net/handshake.h @@ -40,5 +40,6 @@ int tls_server_hello_x509(const struct tls_handshake_args *args, gfp_t flags); int tls_server_hello_psk(const struct tls_handshake_args *args, gfp_t flags); bool tls_handshake_cancel(struct sock *sk); +void tls_handshake_close(struct socket *sock); #endif /* _NET_HANDSHAKE_H */ |