diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-07-27 13:36:17 -0400 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-07-28 14:07:59 -0700 |
commit | 35b1b538d422fd765d88fbdaaa6e06ee466d9f93 (patch) | |
tree | a969b69b78dbaf4ec47f5f8d8929c81fd0c9bfe7 /include | |
parent | 0257427146e84af365612508ace9d0d87dfb7d7a (diff) | |
download | linux-stable-35b1b538d422fd765d88fbdaaa6e06ee466d9f93.tar.gz linux-stable-35b1b538d422fd765d88fbdaaa6e06ee466d9f93.tar.bz2 linux-stable-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')
-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 */ |