1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

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 commit is contained in:
Michael Adam 2008-01-17 11:02:15 +01:00
parent 0cb8399d7c
commit 7251a24b48

View File

@ -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