aboutsummaryrefslogtreecommitdiff
path: root/helper.c
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-06-23 20:41:45 -0400
committerFranklin Wei <me@fwei.tk>2018-06-23 20:41:45 -0400
commit54cffee43a62dcb176bbd0fb7525598d275cfde4 (patch)
tree8c60c53ef311fa94b6b0ccfc9c1c046b37b817c3 /helper.c
parent77094976e17f3c1151dc7210815f0d47029ea54b (diff)
downloadcsaa-54cffee43a62dcb176bbd0fb7525598d275cfde4.zip
csaa-54cffee43a62dcb176bbd0fb7525598d275cfde4.tar.gz
csaa-54cffee43a62dcb176bbd0fb7525598d275cfde4.tar.bz2
csaa-54cffee43a62dcb176bbd0fb7525598d275cfde4.tar.xz
Add command-line interface for client
Mostly functional now; file info and content retrieval not fully done yet.
Diffstat (limited to 'helper.c')
-rw-r--r--helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper.c b/helper.c
index e72d39f..7f2abd7 100644
--- a/helper.c
+++ b/helper.c
@@ -106,7 +106,7 @@ struct tm_request req_filecreate(const struct trusted_module *tm,
req.counter = 0;
/* construct ACL with a single element (the user, with full access) */
- struct iomt_node acl_node = (struct iomt_node) { 1, 1, u64_to_hash(3) };
+ struct iomt_node acl_node = (struct iomt_node) { user_id, user_id, u64_to_hash(3) };
req.val = merkle_compute(hash_node(&acl_node), NULL, NULL, 0);
hash_t one = u64_to_hash(1);