mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
![Chuck Lever](/assets/img/avatar_default.png)
Enable the upper layer protocol to specify the SNI peername. This
avoids the need for tlshd to use a DNS lookup, which can return a
hostname that doesn't match the incoming certificate's SubjectName.
Fixes: 2fd5532044
("net/handshake: Add a kernel API for requesting a TLSv1.3 handshake")
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
74 lines
1.6 KiB
C
74 lines
1.6 KiB
C
/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
|
|
/* Do not edit directly, auto-generated from: */
|
|
/* Documentation/netlink/specs/handshake.yaml */
|
|
/* YNL-GEN uapi header */
|
|
|
|
#ifndef _UAPI_LINUX_HANDSHAKE_H
|
|
#define _UAPI_LINUX_HANDSHAKE_H
|
|
|
|
#define HANDSHAKE_FAMILY_NAME "handshake"
|
|
#define HANDSHAKE_FAMILY_VERSION 1
|
|
|
|
enum handshake_handler_class {
|
|
HANDSHAKE_HANDLER_CLASS_NONE,
|
|
HANDSHAKE_HANDLER_CLASS_TLSHD,
|
|
HANDSHAKE_HANDLER_CLASS_MAX,
|
|
};
|
|
|
|
enum handshake_msg_type {
|
|
HANDSHAKE_MSG_TYPE_UNSPEC,
|
|
HANDSHAKE_MSG_TYPE_CLIENTHELLO,
|
|
HANDSHAKE_MSG_TYPE_SERVERHELLO,
|
|
};
|
|
|
|
enum handshake_auth {
|
|
HANDSHAKE_AUTH_UNSPEC,
|
|
HANDSHAKE_AUTH_UNAUTH,
|
|
HANDSHAKE_AUTH_PSK,
|
|
HANDSHAKE_AUTH_X509,
|
|
};
|
|
|
|
enum {
|
|
HANDSHAKE_A_X509_CERT = 1,
|
|
HANDSHAKE_A_X509_PRIVKEY,
|
|
|
|
__HANDSHAKE_A_X509_MAX,
|
|
HANDSHAKE_A_X509_MAX = (__HANDSHAKE_A_X509_MAX - 1)
|
|
};
|
|
|
|
enum {
|
|
HANDSHAKE_A_ACCEPT_SOCKFD = 1,
|
|
HANDSHAKE_A_ACCEPT_HANDLER_CLASS,
|
|
HANDSHAKE_A_ACCEPT_MESSAGE_TYPE,
|
|
HANDSHAKE_A_ACCEPT_TIMEOUT,
|
|
HANDSHAKE_A_ACCEPT_AUTH_MODE,
|
|
HANDSHAKE_A_ACCEPT_PEER_IDENTITY,
|
|
HANDSHAKE_A_ACCEPT_CERTIFICATE,
|
|
HANDSHAKE_A_ACCEPT_PEERNAME,
|
|
|
|
__HANDSHAKE_A_ACCEPT_MAX,
|
|
HANDSHAKE_A_ACCEPT_MAX = (__HANDSHAKE_A_ACCEPT_MAX - 1)
|
|
};
|
|
|
|
enum {
|
|
HANDSHAKE_A_DONE_STATUS = 1,
|
|
HANDSHAKE_A_DONE_SOCKFD,
|
|
HANDSHAKE_A_DONE_REMOTE_AUTH,
|
|
|
|
__HANDSHAKE_A_DONE_MAX,
|
|
HANDSHAKE_A_DONE_MAX = (__HANDSHAKE_A_DONE_MAX - 1)
|
|
};
|
|
|
|
enum {
|
|
HANDSHAKE_CMD_READY = 1,
|
|
HANDSHAKE_CMD_ACCEPT,
|
|
HANDSHAKE_CMD_DONE,
|
|
|
|
__HANDSHAKE_CMD_MAX,
|
|
HANDSHAKE_CMD_MAX = (__HANDSHAKE_CMD_MAX - 1)
|
|
};
|
|
|
|
#define HANDSHAKE_MCGRP_NONE "none"
|
|
#define HANDSHAKE_MCGRP_TLSHD "tlshd"
|
|
|
|
#endif /* _UAPI_LINUX_HANDSHAKE_H */
|