aboutsummaryrefslogtreecommitdiff
path: root/service_provider.h
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-06-22 22:57:25 -0400
committerFranklin Wei <me@fwei.tk>2018-06-22 22:57:25 -0400
commit77094976e17f3c1151dc7210815f0d47029ea54b (patch)
tree0c10179dacb7d6a696132c1cd63aba1559c8c437 /service_provider.h
parent898454639359d49ddb8cb098634473e9207c6e49 (diff)
downloadcsaa-77094976e17f3c1151dc7210815f0d47029ea54b.zip
csaa-77094976e17f3c1151dc7210815f0d47029ea54b.tar.gz
csaa-77094976e17f3c1151dc7210815f0d47029ea54b.tar.bz2
csaa-77094976e17f3c1151dc7210815f0d47029ea54b.tar.xz
Finish implementing client and server
Also makes a minor change to F_rs() IVP; the encryption pad ought to depend on the file version, not the counter.
Diffstat (limited to 'service_provider.h')
-rw-r--r--service_provider.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/service_provider.h b/service_provider.h
index b55285c..be931a2 100644
--- a/service_provider.h
+++ b/service_provider.h
@@ -105,7 +105,7 @@ struct tm_request sp_modifyfile(struct service_provider *sp,
/* Retrieve authenticated information on a version of a file; if
* version is zero, default to the latest version. */
struct version_info sp_fileinfo(struct service_provider *sp,
- uint64_t user_id, uint64_t file_id,
+ uint64_t user_id, uint64_t file_idx,
uint64_t version,
hash_t *hmac);
@@ -115,6 +115,8 @@ void *sp_retrieve_file(struct service_provider *sp,
uint64_t file_idx,
uint64_t version,
hash_t *encrypted_secret,
+ struct iomt **buildcode,
+ struct iomt **composefile,
size_t *len);
int sp_main(int sockfd);