xref: /openbmc/linux/include/uapi/linux/handshake.h (revision 26fb5480)
1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
2 /* Do not edit directly, auto-generated from: */
3 /*	Documentation/netlink/specs/handshake.yaml */
4 /* YNL-GEN uapi header */
5 
6 #ifndef _UAPI_LINUX_HANDSHAKE_H
7 #define _UAPI_LINUX_HANDSHAKE_H
8 
9 #define HANDSHAKE_FAMILY_NAME		"handshake"
10 #define HANDSHAKE_FAMILY_VERSION	1
11 
12 enum handshake_handler_class {
13 	HANDSHAKE_HANDLER_CLASS_NONE,
14 	HANDSHAKE_HANDLER_CLASS_TLSHD,
15 	HANDSHAKE_HANDLER_CLASS_MAX,
16 };
17 
18 enum handshake_msg_type {
19 	HANDSHAKE_MSG_TYPE_UNSPEC,
20 	HANDSHAKE_MSG_TYPE_CLIENTHELLO,
21 	HANDSHAKE_MSG_TYPE_SERVERHELLO,
22 };
23 
24 enum handshake_auth {
25 	HANDSHAKE_AUTH_UNSPEC,
26 	HANDSHAKE_AUTH_UNAUTH,
27 	HANDSHAKE_AUTH_PSK,
28 	HANDSHAKE_AUTH_X509,
29 };
30 
31 enum {
32 	HANDSHAKE_A_X509_CERT = 1,
33 	HANDSHAKE_A_X509_PRIVKEY,
34 
35 	__HANDSHAKE_A_X509_MAX,
36 	HANDSHAKE_A_X509_MAX = (__HANDSHAKE_A_X509_MAX - 1)
37 };
38 
39 enum {
40 	HANDSHAKE_A_ACCEPT_SOCKFD = 1,
41 	HANDSHAKE_A_ACCEPT_HANDLER_CLASS,
42 	HANDSHAKE_A_ACCEPT_MESSAGE_TYPE,
43 	HANDSHAKE_A_ACCEPT_TIMEOUT,
44 	HANDSHAKE_A_ACCEPT_AUTH_MODE,
45 	HANDSHAKE_A_ACCEPT_PEER_IDENTITY,
46 	HANDSHAKE_A_ACCEPT_CERTIFICATE,
47 	HANDSHAKE_A_ACCEPT_PEERNAME,
48 
49 	__HANDSHAKE_A_ACCEPT_MAX,
50 	HANDSHAKE_A_ACCEPT_MAX = (__HANDSHAKE_A_ACCEPT_MAX - 1)
51 };
52 
53 enum {
54 	HANDSHAKE_A_DONE_STATUS = 1,
55 	HANDSHAKE_A_DONE_SOCKFD,
56 	HANDSHAKE_A_DONE_REMOTE_AUTH,
57 
58 	__HANDSHAKE_A_DONE_MAX,
59 	HANDSHAKE_A_DONE_MAX = (__HANDSHAKE_A_DONE_MAX - 1)
60 };
61 
62 enum {
63 	HANDSHAKE_CMD_READY = 1,
64 	HANDSHAKE_CMD_ACCEPT,
65 	HANDSHAKE_CMD_DONE,
66 
67 	__HANDSHAKE_CMD_MAX,
68 	HANDSHAKE_CMD_MAX = (__HANDSHAKE_CMD_MAX - 1)
69 };
70 
71 #define HANDSHAKE_MCGRP_NONE	"none"
72 #define HANDSHAKE_MCGRP_TLSHD	"tlshd"
73 
74 #endif /* _UAPI_LINUX_HANDSHAKE_H */
75