summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-02-27 09:13:59 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2018-02-27 09:13:59 +0100
commitbd10bc4405f3777fe495cb9f62818d67ab584854 (patch)
tree39337f9122e06c721357a7cecf23087f6f717034
parent5371087aecf6a52ae880266cb54e48c6dc5b1d9d (diff)
afs-supervisor: Enforce session check (for token)
Change-Id: I6fdc419923944183d12c9c931e90e276f3dc8ac6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afs-supervisor.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/afs-supervisor.c b/src/afs-supervisor.c
index a67b20a3..608f076e 100644
--- a/src/afs-supervisor.c
+++ b/src/afs-supervisor.c
@@ -454,70 +454,70 @@ static const struct afb_verb_v2 _afb_verbs_v2_supervisor[] = {
.callback = f_list,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{
.verb = "config",
.callback = f_config,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{
.verb = "do",
.callback = f_do,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{
.verb = "trace",
.callback = f_trace,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{
.verb = "sessions",
.callback = f_sessions,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{
.verb = "session-close",
.callback = f_session_close,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{
.verb = "exit",
.callback = f_exit,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{
.verb = "debug-wait",
.callback = f_debug_wait,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{
.verb = "debug-break",
.callback = f_debug_break,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{
.verb = "discover",
.callback = f_discover,
.auth = &_afb_auths_v2_supervisor[0],
.info = NULL,
- .session = AFB_SESSION_NONE_V2
+ .session = AFB_SESSION_CHECK_V2
},
{ .verb = NULL }
};