From f4b6098c2359a75cc16275aad7ba2bf001261dea Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 20 Nov 2016 21:15:13 -0500 Subject: Move UUID utilities to hal.h; change attribute values to (const void *). --- rpc_server.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'rpc_server.c') diff --git a/rpc_server.c b/rpc_server.c index ae891a4..f4f2a06 100644 --- a/rpc_server.c +++ b/rpc_server.c @@ -661,9 +661,11 @@ static hal_error_t pkey_match(const uint8_t **iptr, const uint8_t * const ilimit for (int i = 0; i < attributes_len; i++) { hal_rpc_pkey_attribute_t *a = &attributes[i]; + const uint8_t *value; uint32_t value_len; check(hal_xdr_decode_int(iptr, ilimit, &a->type)); - check(hal_xdr_decode_buffer_in_place(iptr, ilimit, &a->value, &value_len)); + check(hal_xdr_decode_buffer_in_place(iptr, ilimit, &value, &value_len)); + a->value = value; a->length = value_len; } @@ -712,9 +714,11 @@ static hal_error_t pkey_set_attributes(const uint8_t **iptr, const uint8_t * con for (int i = 0; i < attributes_len; i++) { hal_rpc_pkey_attribute_t *a = &attributes[i]; + const uint8_t *value; uint32_t value_len; check(hal_xdr_decode_int(iptr, ilimit, &a->type)); - check(hal_xdr_decode_buffer_in_place(iptr, ilimit, &a->value, &value_len)); + check(hal_xdr_decode_buffer_in_place(iptr, ilimit, &value, &value_len)); + a->value = value; a->length = value_len; } -- cgit v1.2.3