summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-06 21:20:50 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-06 21:20:50 +0100
commit77b134b5f3f2856cd6a915904b9ff3b207654c71 (patch)
tree1873ac1fafd916d792ae0d5c89e775fafd924334 /include
parent0dd6156eaf461a25781a9f0b7dd727e03c6172b0 (diff)
downloadconnman-77b134b5f3f2856cd6a915904b9ff3b207654c71.tar.gz
connman-77b134b5f3f2856cd6a915904b9ff3b207654c71.tar.bz2
connman-77b134b5f3f2856cd6a915904b9ff3b207654c71.zip
Add support for different security privileges
Diffstat (limited to 'include')
-rw-r--r--include/security.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/security.h b/include/security.h
index 123e6fb3..9e27a5f2 100644
--- a/include/security.h
+++ b/include/security.h
@@ -32,6 +32,12 @@ extern "C" {
* @short_description: Functions for registering security modules
*/
+enum connman_security_privilege {
+ CONNMAN_SECURITY_PRIVILEGE_PUBLIC = 0,
+ CONNMAN_SECURITY_PRIVILEGE_MODIFY = 1,
+ CONNMAN_SECURITY_PRIVILEGE_SECRET = 2,
+};
+
#define CONNMAN_SECURITY_PRIORITY_LOW -100
#define CONNMAN_SECURITY_PRIORITY_DEFAULT 0
#define CONNMAN_SECURITY_PRIORITY_HIGH 100
@@ -39,7 +45,8 @@ extern "C" {
struct connman_security {
const char *name;
int priority;
- int (*authorize_sender) (const char *sender);
+ int (*authorize_sender) (const char *sender,
+ enum connman_security_privilege privilege);
};
extern int connman_security_register(struct connman_security *security);