From 0d3dc9722c610857c2f83c4f3bf06299f2426a95 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Fri, 15 Nov 2019 15:33:26 +0100 Subject: 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 --- src/afb-session.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/afb-session.c') 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) { -- cgit 1.2.3-korg