Changeset 745 for trunk/server/libgpo/gpext
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/libgpo/gpext/gpext.c
r414 r745 19 19 20 20 #include "includes.h" 21 #include "../libgpo/gpo.h" 21 22 #include "../libgpo/gpext/gpext.h" 22 23 #include "librpc/gen_ndr/ndr_misc.h" 23 24 #include "lib/util/dlinklist.h" 25 #include "../libcli/registry/util_reg.h" 26 #if _SAMBA_BUILD_ == 3 27 #include "libgpo/gpo_proto.h" 28 #include "registry.h" 29 #include "registry/reg_api.h" 30 #endif 24 31 25 32 static struct gp_extension *extensions = NULL; … … 277 284 case REG_SZ: 278 285 case REG_EXPAND_SZ: 279 data->v.sz.str = talloc_strdup(mem_ctx, data_s);280 NT_STATUS_HAVE_NO_MEMORY(data->v.sz.str);281 data->v.sz.len = strlen(data_s);286 if (!push_reg_sz(mem_ctx, &data->data, data_s)) { 287 return NT_STATUS_NO_MEMORY; 288 } 282 289 break; 283 case REG_DWORD: 284 data->v.dword = atoi(data_s); 290 case REG_DWORD: { 291 uint32_t v = atoi(data_s); 292 data->data = data_blob_talloc(mem_ctx, NULL, 4); 293 SIVAL(data->data.data, 0, v); 285 294 break; 295 } 286 296 default: 287 297 return NT_STATUS_NOT_SUPPORTED; … … 587 597 588 598 if (!reg_ctx) { 589 NT_USER_TOKEN*token;599 struct security_token *token; 590 600 591 601 token = registry_create_system_token(mem_ctx); … … 671 681 TALLOC_CTX *mem_ctx, 672 682 uint32_t flags, 673 const NT_USER_TOKEN*token,683 const struct security_token *token, 674 684 struct GROUP_POLICY_OBJECT *gpo_list, 675 685 const char *extension_guid, … … 685 695 TALLOC_CTX *mem_ctx, 686 696 uint32_t flags, 687 const NT_USER_TOKEN*token,697 const struct security_token *token, 688 698 struct registry_key *root_key, 689 699 struct GROUP_POLICY_OBJECT *gpo, -
trunk/server/libgpo/gpext/gpext.h
r414 r745 66 66 uint32_t flags, 67 67 struct registry_key *root_key, 68 const NT_USER_TOKEN*token,68 const struct security_token *token, 69 69 struct GROUP_POLICY_OBJECT *gpo, 70 70 const char *extension_guid, … … 74 74 TALLOC_CTX *mem_ctx, 75 75 uint32_t flags, 76 const NT_USER_TOKEN*token,76 const struct security_token *token, 77 77 struct GROUP_POLICY_OBJECT *gpo_list, 78 78 const char *extension_guid); … … 110 110 TALLOC_CTX *mem_ctx, 111 111 uint32_t flags, 112 const NT_USER_TOKEN*token,112 const struct security_token *token, 113 113 struct GROUP_POLICY_OBJECT *gpo_list, 114 114 const char *extension_guid, … … 117 117 TALLOC_CTX *mem_ctx, 118 118 uint32_t flags, 119 const NT_USER_TOKEN*token,119 const struct security_token *token, 120 120 struct registry_key *root_key, 121 121 struct GROUP_POLICY_OBJECT *gpo,
Note:
See TracChangeset
for help on using the changeset viewer.