diff options
author | Michael Adam <obnox@samba.org> | 2008-01-17 11:02:15 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-17 16:25:11 +0100 |
commit | da4ecfc0faed73599412b10d081c86fb748ec0d4 (patch) | |
tree | cf4a910b3c36601843dcde8405756da5c476b89a /source3/registry | |
parent | fcb47f5ea91d497a3921cf5617e30da50638deab (diff) | |
download | samba-da4ecfc0faed73599412b10d081c86fb748ec0d4.tar.gz samba-da4ecfc0faed73599412b10d081c86fb748ec0d4.tar.bz2 samba-da4ecfc0faed73599412b10d081c86fb748ec0d4.zip |
Add reg_api functions reg_getkeysecurity() and reg_setkeysecurity().
These are wrappers around the lower level functions regkey_get_secdesc()
and regkey_set_secdesc(). Next step towards hiding reg_frontend from
the surface.
Michael
(This used to be commit 7251a24b489a008243091279d96157cacec35b62)
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_api.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c index ee138b284d..4ba5073cb0 100644 --- a/source3/registry/reg_api.c +++ b/source3/registry/reg_api.c @@ -637,6 +637,17 @@ WERROR reg_deletevalue(struct registry_key *key, const char *name) return WERR_OK; } +WERROR reg_getkeysecurity(TALLOC_CTX *mem_ctx, struct registry_key *key, + struct security_descriptor **psecdesc) +{ + return regkey_get_secdesc(mem_ctx, key->key, psecdesc); +} + +WERROR reg_setkeysecurity(struct registry_key *key, + struct security_descriptor *psecdesc) +{ + return regkey_set_secdesc(key->key, psecdesc); +} /********************************************************************** * Higher level utility functions |