diff options
author | Gerald Carter <jerry@samba.org> | 2006-09-28 21:19:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:14:53 -0500 |
commit | 18d417663395febe60b23f376b2e92c9869e1126 (patch) | |
tree | a949532d6eb08c9fd3be722ad9738c3d1c783743 /source3/rpc_client | |
parent | 0f56237bc0e0da61c958eb964b6a02958e0d5cda (diff) | |
download | samba-18d417663395febe60b23f376b2e92c9869e1126.tar.gz samba-18d417663395febe60b23f376b2e92c9869e1126.tar.bz2 samba-18d417663395febe60b23f376b2e92c9869e1126.zip |
r18981: * cleanup some vestiges of old cli_reg.c code and mark some TODO
items in cac_winreg.c
* Get 'net rpc registry enumerate' to list values again
* Fix winreg.idl QueryInfoKey(). The max_subkeysize is the
max_classlen (we previously had this correct in Samba3")
* fix valgrind error about uninitialized memory and use-before-set
on size value inmemset() call
* Fix key enumeration in 'net rpc registry enumerate'
* regenerate gen_dir files based on local pidl patches
Please note that the generated ndr files are from my local
copy of pidl. If you need to regenerate, please apply the
patch that I posted to the samba-technical list earlier today.
(This used to be commit 5d843612a1b9d92022f76626f1c7473faebec4ba)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_reg.c | 57 |
1 files changed, 1 insertions, 56 deletions
diff --git a/source3/rpc_client/cli_reg.c b/source3/rpc_client/cli_reg.c index 42f0606ca6..3aadc04975 100644 --- a/source3/rpc_client/cli_reg.c +++ b/source3/rpc_client/cli_reg.c @@ -26,7 +26,7 @@ connect to a registry hive root (open a registry policy) *******************************************************************/ -NTSTATUS rpccli_winreg_connect(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, +NTSTATUS rpccli_winreg_Connect(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32 reg_type, uint32 access_mask, POLICY_HND *reg_hnd) { @@ -58,61 +58,6 @@ NTSTATUS rpccli_winreg_connect(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, return NT_STATUS_INVALID_PARAMETER; } -/**************************************************************************** -****************************************************************************/ - -NTSTATUS rpccli_winreg_query_key(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - POLICY_HND *hnd, - char *key_class, uint32 *class_len, - uint32 *num_subkeys, uint32 *max_subkeylen, - uint32 *max_subkeysize, uint32 *num_values, - uint32 *max_valnamelen, uint32 *max_valbufsize, - uint32 *secdescsize, NTTIME *mod_time) -{ - NTSTATUS status; - struct winreg_String classname; - - classname.name = key_class; - status = rpccli_winreg_QueryInfoKey( cli, mem_ctx, hnd, - &classname, num_subkeys, - max_subkeylen, max_subkeysize, num_values, - max_valnamelen, max_valbufsize, secdescsize, - mod_time ); - - /* The old code would check for INSUFFICIENT_BUFFER. - Will have to work this out. */ - - return status; -} - - -/**************************************************************************** -****************************************************************************/ - -NTSTATUS rpccli_winreg_enum_val(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - POLICY_HND *hnd, int idx, - fstring val_name, uint32 *type, REGVAL_BUFFER *value) -{ - NTSTATUS status = NT_STATUS_INVALID_PARAMETER; - - /* do rpc */ - - - return status; -} - -/**************************************************************************** -****************************************************************************/ - -NTSTATUS rpccli_winreg_enum_key(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - POLICY_HND *hnd, int key_index, fstring key_name, - fstring class_name, time_t *mod_time) -{ - NTSTATUS status = NT_STATUS_UNSUCCESSFUL; - - return status; -} - /* * * Utility functions |