diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-09-21 09:08:07 -0400 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-10-02 12:34:21 -0700 |
commit | 160f404495aa9282cac99b518d1b379e31ef1bdd (patch) | |
tree | 8345d80ca281195662936c75ae1c85fabbc6ede0 /tools/net | |
parent | a6b07a51b161ba1ad3d81919955fe77b697f9d48 (diff) |
handshake: Fix sign of key_serial_t fields
key_serial_t fields are signed integers. Use nla_get/put_s32 for
those to avoid implicit signed conversion in the netlink protocol.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/169530167716.8905.645746457741372879.stgit@oracle-102.nfsv4bat.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/net')
-rw-r--r-- | tools/net/ynl/generated/handshake-user.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/net/ynl/generated/handshake-user.h b/tools/net/ynl/generated/handshake-user.h index f8e481fa9e09..2b34acc608de 100644 --- a/tools/net/ynl/generated/handshake-user.h +++ b/tools/net/ynl/generated/handshake-user.h @@ -28,8 +28,8 @@ struct handshake_x509 { __u32 privkey:1; } _present; - __u32 cert; - __u32 privkey; + __s32 cert; + __s32 privkey; }; /* ============== HANDSHAKE_CMD_ACCEPT ============== */ |