aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/binding/low-can-hat.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-07-13 18:47:18 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-07-21 12:02:11 +0200
commit0dc8b87f5d8a03183c1b947640f6315545e4207b (patch)
tree56e194b30470df6ab27fbd0d706a783896bd870d /low-can-binding/binding/low-can-hat.hpp
parent3a0d2a4a74e548c3ef19b19c72bf28a3da8796bf (diff)
Create an auth verb to raise privilege of session
Simply raise to a LOA of 1 the current session if asked Need to add some checks to not allow anyone raise its session must hold a specific permission urn:AGL:permission::platform:can:write to be able to authenticate. Change-Id: Id4e01ca20ba8437e97a64db682fdd3ebf45ce7b4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/binding/low-can-hat.hpp')
-rw-r--r--low-can-binding/binding/low-can-hat.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/low-can-binding/binding/low-can-hat.hpp b/low-can-binding/binding/low-can-hat.hpp
index 6ecad23a..b0f29b5e 100644
--- a/low-can-binding/binding/low-can-hat.hpp
+++ b/low-can-binding/binding/low-can-hat.hpp
@@ -36,6 +36,7 @@ void on_no_clients(std::shared_ptr<low_can_subscription_t> can_subscription, std
void on_no_clients(std::shared_ptr<low_can_subscription_t> can_subscription, uint32_t pid, std::map<int, std::shared_ptr<low_can_subscription_t> >& s);
int read_message(sd_event_source *s, int fd, uint32_t revents, void *userdata);
+void auth(struct afb_req request);
void subscribe(struct afb_req request);
void unsubscribe(struct afb_req request);
void swrite(struct afb_req request);