aboutsummaryrefslogtreecommitdiff
path: root/service_provider.h
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-06-15 12:26:45 -0400
committerFranklin Wei <me@fwei.tk>2018-06-15 12:26:45 -0400
commit62b6943d450944b7d461e8fc20049aa672c4e201 (patch)
treede52319f16ef6a56fb112347d545feca31f17bea /service_provider.h
parentfba7a547b3626e5ce3980623cd111dc84b854762 (diff)
downloadcsaa-62b6943d450944b7d461e8fc20049aa672c4e201.zip
csaa-62b6943d450944b7d461e8fc20049aa672c4e201.tar.gz
csaa-62b6943d450944b7d461e8fc20049aa672c4e201.tar.bz2
csaa-62b6943d450944b7d461e8fc20049aa672c4e201.tar.xz
Working on service provider's request handling; some cleanup too
Diffstat (limited to 'service_provider.h')
-rw-r--r--service_provider.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/service_provider.h b/service_provider.h
index 883c9ea..6deb814 100644
--- a/service_provider.h
+++ b/service_provider.h
@@ -10,11 +10,16 @@
struct service_provider;
struct service_provider *sp_new(const void *key, size_t keylen, int logleaves);
+
+/* see .c file for documentation */
struct tm_cert sp_request(struct service_provider *sp,
const struct user_request *req, hash_t req_hmac,
hash_t *hmac_out,
- struct tm_cert *vr_out, hash_t *vr_hmac,
- hash_t *ack_hmac);
+ struct tm_cert *vr_out, hash_t *vr_hmac_out,
+ hash_t *ack_hmac_out,
+ hash_t encrypted_secret, hash_t kf,
+ const void *encrypted_contents,
+ size_t contents_len);
void sp_test(void);