diff --git a/home/nipa/nipa_out/977763/ynl/old-code/handshake-user.c b/home/nipa/nipa_out/977763/ynl/new-code/handshake-user.c index 2c9177c7f2d2..0d640d9e9819 100644 --- a/home/nipa/nipa_out/977763/ynl/old-code/handshake-user.c +++ b/home/nipa/nipa_out/977763/ynl/new-code/handshake-user.c @@ -85,6 +85,7 @@ const struct ynl_policy_attr handshake_accept_policy[HANDSHAKE_A_ACCEPT_MAX + 1] [HANDSHAKE_A_ACCEPT_PEER_IDENTITY] = { .name = "peer-identity", .type = YNL_PT_U32, }, [HANDSHAKE_A_ACCEPT_CERTIFICATE] = { .name = "certificate", .type = YNL_PT_NEST, .nest = &handshake_x509_nest, }, [HANDSHAKE_A_ACCEPT_PEERNAME] = { .name = "peername", .type = YNL_PT_NUL_STR, }, + [HANDSHAKE_A_ACCEPT_KEYRING] = { .name = "keyring", .type = YNL_PT_U32, }, }; const struct ynl_policy_nest handshake_accept_nest = { @@ -208,6 +209,11 @@ int handshake_accept_rsp_parse(const struct nlmsghdr *nlh, dst->peername = malloc(len + 1); memcpy(dst->peername, ynl_attr_get_str(attr), len); dst->peername[len] = 0; + } else if (type == HANDSHAKE_A_ACCEPT_KEYRING) { + if (ynl_attr_validate(yarg, attr)) + return YNL_PARSE_CB_ERROR; + dst->_present.keyring = 1; + dst->keyring = ynl_attr_get_u32(attr); } } diff --git a/home/nipa/nipa_out/977763/ynl/old-code/handshake-user.h b/home/nipa/nipa_out/977763/ynl/new-code/handshake-user.h index 52206953b6c2..713431c6dfb8 100644 --- a/home/nipa/nipa_out/977763/ynl/old-code/handshake-user.h +++ b/home/nipa/nipa_out/977763/ynl/new-code/handshake-user.h @@ -62,6 +62,7 @@ struct handshake_accept_rsp { __u32 message_type:1; __u32 timeout:1; __u32 auth_mode:1; + __u32 keyring:1; } _present; struct { __u32 peername; @@ -78,6 +79,7 @@ struct handshake_accept_rsp { __u32 *peer_identity; struct handshake_x509 *certificate; char *peername; + __u32 keyring; }; void handshake_accept_rsp_free(struct handshake_accept_rsp *rsp);