diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-11-15 15:33:26 +0100 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2019-11-25 11:48:31 +0100 |
commit | 0d3dc9722c610857c2f83c4f3bf06299f2426a95 (patch) | |
tree | 5d2a8b950e32d5ca61b73ffe17266f0d9c5e5aac /src/afb-session.c | |
parent | e6908a2ee7b645517c062f2fd0419fcb3f4f976e (diff) |
Remove refreshing token
The token is no more generated by the binder
but by some external component.
Bug-AGL: SPEC-2968
Change-Id: I2c6221034272ab097e21e7727e4840b6b47bd0dc
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-session.c')
-rw-r--r-- | src/afb-session.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/afb-session.c b/src/afb-session.c index fe5aa4af..8fa44341 100644 --- a/src/afb-session.c +++ b/src/afb-session.c @@ -545,29 +545,6 @@ int afb_session_check_token (struct afb_session *session, const char *token) return r; } -/* generate a new token and update client context */ -void afb_session_new_token (struct afb_session *session) -{ - int rc; - uuid_stringz_t uuid; - struct afb_token *previous, *next; - session_lock(session); - uuid_new_stringz(uuid); - rc = afb_token_get(&next, uuid); - if (rc < 0) - ERROR("can't renew token"); - else { - previous = session->token; - session->token = next; - session_update_expiration(session, NOW); -#if WITH_AFB_HOOK - afb_hook_session_renew(session); -#endif - afb_token_unref(previous); - } - session_unlock(session); -} - /* Returns the uuid of 'session' */ const char *afb_session_uuid (struct afb_session *session) { |