Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move tokens from sessions to requests
[src/app-framework-binder.git]
/
src
/
afb-hreq.c
diff --git
a/src/afb-hreq.c
b/src/afb-hreq.c
index
a9010b8
..
4d5f659
100644
(file)
--- a/
src/afb-hreq.c
+++ b/
src/afb-hreq.c
@@
-43,6
+43,7
@@
#include "afb-hsrv.h"
#include "afb-session.h"
#include "afb-cred.h"
#include "afb-hsrv.h"
#include "afb-session.h"
#include "afb-cred.h"
+#include "afb-token.h"
#include "verbose.h"
#include "locale-root.h"
#include "verbose.h"
#include "locale-root.h"
@@
-966,6
+967,7
@@
int afb_hreq_init_context(struct afb_hreq *hreq)
{
const char *uuid;
const char *token;
{
const char *uuid;
const char *token;
+ struct afb_token *tok;
if (hreq->xreq.context.session != NULL)
return 0;
if (hreq->xreq.context.session != NULL)
return 0;
@@
-994,8
+996,11
@@
int afb_hreq_init_context(struct afb_hreq *hreq)
}
}
}
}
}
}
+ tok = NULL;
+ if (token)
+ afb_token_get(&tok, token);
- return afb_context_connect(&hreq->xreq.context, uuid, tok
en
);
+ return afb_context_connect(&hreq->xreq.context, uuid, tok);
}
int afb_hreq_init_cookie(int port, const char *path, int maxage)
}
int afb_hreq_init_cookie(int port, const char *path, int maxage)