summaryrefslogtreecommitdiff
path: root/libcli/security
diff options
context:
space:
mode:
Diffstat (limited to 'libcli/security')
-rw-r--r--libcli/security/privileges.c2
-rw-r--r--libcli/security/privileges.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/libcli/security/privileges.c b/libcli/security/privileges.c
index b15a4ecc1a..5c33f04693 100644
--- a/libcli/security/privileges.c
+++ b/libcli/security/privileges.c
@@ -171,7 +171,7 @@ static const struct {
/*
return a privilege mask given a privilege id
*/
-static uint64_t sec_privilege_mask(enum sec_privilege privilege)
+uint64_t sec_privilege_mask(enum sec_privilege privilege)
{
int i;
for (i=0;i<ARRAY_SIZE(privs);i++) {
diff --git a/libcli/security/privileges.h b/libcli/security/privileges.h
index 8bcb5235ec..40de9ef6ec 100644
--- a/libcli/security/privileges.h
+++ b/libcli/security/privileges.h
@@ -63,6 +63,11 @@ typedef struct {
struct lsa_LUIDAttribute *set;
} PRIVILEGE_SET;
+/*
+ return a privilege mask given a privilege id
+*/
+uint64_t sec_privilege_mask(enum sec_privilege privilege);
+
/***************************************************************************
copy an uint64_t structure
****************************************************************************/