]> granicus.if.org Git - p11-kit/commit
rpc: Convert attribute value for portability
authorDaiki Ueno <dueno@redhat.com>
Thu, 11 May 2017 13:26:36 +0000 (15:26 +0200)
committerDaiki Ueno <ueno@gnu.org>
Mon, 22 May 2017 15:19:20 +0000 (17:19 +0200)
commitba49b85ecf280e7fb6eec96c3ef33c50122e75a6
tree7ecbde7a26eca8e14c72616ab5556eb618f2d8a2
parent480337a68446033dc9374e9c4fe4d3cae9d4e972
rpc: Convert attribute value for portability

When using the RPC across multiple architectures, where data models
are different, say LP64 vs ILP32, there can be unwanted truncation of
attribute values.

This patch converts the values into portable format for the known
attributes.

Co-authored-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
p11-kit/rpc-client.c
p11-kit/rpc-message.c
p11-kit/rpc-message.h
p11-kit/rpc-server.c
p11-kit/test-rpc.c