From 17eb05228ee93c9790a0bacbfb0e5e282aa180d2 Mon Sep 17 00:00:00 2001
From: Gerald Carter <jerry@samba.org>
Date: Thu, 16 Jun 2005 20:45:55 +0000
Subject: r7648: adding REGISTRY_HOOK->reg_access_check() for authprization
 checks on RegOpenKey(); passing it off to the backend code for a given path
 (This used to be commit 867fd3052bbfdd45856886999619e2ebc6552675)

---
 source3/include/rpc_reg.h | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

(limited to 'source3/include')

diff --git a/source3/include/rpc_reg.h b/source3/include/rpc_reg.h
index 83b44ce7c9..c83802b3f5 100644
--- a/source3/include/rpc_reg.h
+++ b/source3/include/rpc_reg.h
@@ -92,10 +92,11 @@
  
 typedef struct {
 	/* functions for enumerating subkeys and values */	
-	int 	(*subkey_fn)( char *key, REGSUBKEY_CTR *subkeys);
-	int 	(*value_fn) ( char *key, REGVAL_CTR *val );
-	BOOL 	(*store_subkeys_fn)( char *key, REGSUBKEY_CTR *subkeys );
-	BOOL 	(*store_values_fn)( char *key, REGVAL_CTR *val );
+	int 	(*fetch_subkeys)( char *key, REGSUBKEY_CTR *subkeys);
+	int 	(*fetch_values) ( char *key, REGVAL_CTR *val );
+	BOOL 	(*store_subkeys)( char *key, REGSUBKEY_CTR *subkeys );
+	BOOL 	(*store_values)( char *key, REGVAL_CTR *val );
+	BOOL	(*reg_access_check)( uint32 parent_granted, uint32 requested, uint32 *granted );
 } REGISTRY_OPS;
 
 typedef struct {
@@ -282,12 +283,12 @@ typedef struct {
 /***********************************************/
 
 typedef struct {
-	POLICY_HND pol;       /* policy handle */
+	POLICY_HND pol;
 } REG_Q_GETVERSION;
 
 typedef struct {
-	uint32 unknown;         /* 0x0500 0000 */
-	WERROR status;         /* return status */
+	uint32 win_version;
+	WERROR status;
 } REG_R_GETVERSION;
 
 
-- 
cgit