mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-12 17:26:47 -04:00
net/handshake: Add helpers for parsing incoming TLS Alerts
Kernel TLS consumers can replace common TLS Alert parsing code with these helpers. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Link: https://lore.kernel.org/r/169047942074.5241.13791647439480672048.stgit@oracle-102.nfsv4bat.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
5dd5ad682c
commit
39d0e38dcc
@@ -42,4 +42,8 @@ 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);
|
||||
|
||||
u8 tls_get_record_type(const struct sock *sk, const struct cmsghdr *msg);
|
||||
void tls_alert_recv(const struct sock *sk, const struct msghdr *msg,
|
||||
u8 *level, u8 *description);
|
||||
|
||||
#endif /* _NET_HANDSHAKE_H */
|
||||
|
||||
Reference in New Issue
Block a user