From da4ecfc0faed73599412b10d081c86fb748ec0d4 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 17 Jan 2008 11:02:15 +0100 Subject: 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) --- source3/registry/reg_api.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3') 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 -- cgit