History

tipc: add support for AEAD key setting via netlink

This commit adds two netlink commands to TIPC in order for user to be able to set or remove AEAD keys: - TIPC_NL_KEY_SET - TIPC_NL_KEY_FLUSH When the 'KEY_SET' is given along with the key data, the key will be initiated and attached to TIPC crypto. On the other hand, the 'KEY_FLUSH' command will remove all existing keys if any.

Tuong Lien committed 7 years ago

Commit e1f32191 parent fc1b6d64 files · +160 −1Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/tipc_netlink.h+4−0
@@ -63,6 +63,8 @@ enum { · 62 unmodified lines
6363 TIPC_NL_PEER_REMOVE,
6464 TIPC_NL_BEARER_ADD,
6565 TIPC_NL_UDP_GET_REMOTEIP,
66+ TIPC_NL_KEY_SET,
67+ TIPC_NL_KEY_FLUSH,
6668
6769 __TIPC_NL_CMD_MAX,
6870 TIPC_NL_CMD_MAX = __TIPC_NL_CMD_MAX - 1
@@ -160,6 +162,8 @@ enum { · 91 unmodified lines
160162 TIPC_NLA_NODE_UNSPEC,
161163 TIPC_NLA_NODE_ADDR, /* u32 */
162164 TIPC_NLA_NODE_UP, /* flag */
165+ TIPC_NLA_NODE_ID, /* data */
166+ TIPC_NLA_NODE_KEY, /* data */
163167
164168 __TIPC_NLA_NODE_MAX,
165169 TIPC_NLA_NODE_MAX = __TIPC_NLA_NODE_MAX - 1