aboutsummaryrefslogtreecommitdiff
path: root/service_provider.c
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-30 19:28:27 +0000
committerFranklin Wei <me@fwei.tk>2018-07-30 19:28:27 +0000
commitf15dc2baf99f2c7e1517e3370a946bbc13e89ff6 (patch)
treebb00b568220109080b231704a9e3d74d5b189f36 /service_provider.c
parent8be4b2fb7a04c2ea095263d462a4284af345ab80 (diff)
downloadcsaa-f15dc2baf99f2c7e1517e3370a946bbc13e89ff6.zip
csaa-f15dc2baf99f2c7e1517e3370a946bbc13e89ff6.tar.gz
csaa-f15dc2baf99f2c7e1517e3370a946bbc13e89ff6.tar.bz2
csaa-f15dc2baf99f2c7e1517e3370a946bbc13e89ff6.tar.xz
Finish up data processing scripts for new profiling method
Diffstat (limited to 'service_provider.c')
-rw-r--r--service_provider.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/service_provider.c b/service_provider.c
index 5fc5f7d..79e6cd0 100644
--- a/service_provider.c
+++ b/service_provider.c
@@ -1087,6 +1087,8 @@ void *sp_retrieve_file(struct service_provider *sp,
{
struct file_record *rec = lookup_record(sp, file_idx);
+ prof_add(&sp->profile, "finish_lookup");
+
if(!rec || !rec->version)
{
/* Newly created file, no contents. We don't bother to set
@@ -1101,6 +1103,7 @@ void *sp_retrieve_file(struct service_provider *sp,
version = rec->version;
struct file_version *ver = lookup_version(sp, file_idx, version);
+ prof_add(&sp->profile, "finish_lookupver");
if(!ver)
{
@@ -1113,6 +1116,8 @@ void *sp_retrieve_file(struct service_provider *sp,
struct tm_cert rv1 = cert_rv_by_idx(sp->tm, sp->iomt, file_idx, &rv1_hmac);
struct tm_cert rv2 = cert_rv_by_idx(sp->tm, rec->acl, user_id, &rv2_hmac);
+ prof_add(&sp->profile, "finish_rvcerts");
+
if(hash_to_u64(rv2.rv.val) < 1)
{
free_version(ver);
@@ -1130,6 +1135,7 @@ void *sp_retrieve_file(struct service_provider *sp,
&rec->fr_cert, rec->fr_hmac,
ver->encrypted_secret, ver->kf);
}
+ prof_add(&sp->profile, "finish_retsec");
if(kf)
*kf = ver->kf;