From 3c6b0f965588aab0edbc4d115fb9e72c884ded3b Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Sat, 3 Sep 2005 16:55:45 +0000 Subject: r10003: in the rush for 10k, I forgot to run add the rest of Chris' libmsrpc files (This used to be commit 32bebc452dffa8348b94c5b866350b1fe761986f) --- source3/include/libmsrpc_internal.h | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 source3/include/libmsrpc_internal.h (limited to 'source3/include/libmsrpc_internal.h') diff --git a/source3/include/libmsrpc_internal.h b/source3/include/libmsrpc_internal.h new file mode 100644 index 0000000000..5073813e21 --- /dev/null +++ b/source3/include/libmsrpc_internal.h @@ -0,0 +1,69 @@ +/* + * Unix SMB/CIFS implementation. + * MS-RPC client internal definitions + * Copyright (C) Chris Nicholls 2005. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef LIBMSRPC_INTERNAL_H +#define LIBMSRPC_INTERNAL_H + +#include "libmsrpc.h" + +/*definitions*/ + +struct CacServerHandleInternal { + /*stores the os type of the server*/ + uint16 srv_level; + + /*stores the initialized/active pipes*/ + BOOL pipes[PI_MAX_PIPES]; + + /*underlying smbc context*/ + SMBCCTX *ctx; + + /*did the user supply this SMBCCTX?*/ + BOOL user_supplied_ctx; +}; + +/*nessecary prototypes*/ +BOOL rid_in_list(uint32 rid, uint32 *list, uint32 list_len); + +int cac_ParseRegPath(char *path, uint32 *reg_type, char **key_name); + +REG_VALUE_DATA *cac_MakeRegValueData(TALLOC_CTX *mem_ctx, uint32 data_type, REGVAL_BUFFER buf); + +RPC_DATA_BLOB *cac_MakeRpcDataBlob(TALLOC_CTX *mem_ctx, uint32 data_type, REG_VALUE_DATA data); + +SAM_USERINFO_CTR *cac_MakeUserInfoCtr(TALLOC_CTX *mem_ctx, CacUserInfo *info); + +CacUserInfo *cac_MakeUserInfo(TALLOC_CTX *mem_ctx, SAM_USERINFO_CTR *ctr); +CacGroupInfo *cac_MakeGroupInfo(TALLOC_CTX *mem_ctx, GROUP_INFO_CTR *ctr); +GROUP_INFO_CTR *cac_MakeGroupInfoCtr(TALLOC_CTX *mem_ctx, CacGroupInfo *info); +CacAliasInfo *cac_MakeAliasInfo(TALLOC_CTX *mem_ctx, ALIAS_INFO_CTR ctr); +ALIAS_INFO_CTR *cac_MakeAliasInfoCtr(TALLOC_CTX *mem_ctx, CacAliasInfo *info); +CacDomainInfo *cac_MakeDomainInfo(TALLOC_CTX *mem_ctx, SAM_UNK_INFO_1 *info1, SAM_UNK_INFO_2 *info2, SAM_UNK_INFO_12 *info12); +CacService *cac_MakeServiceArray(TALLOC_CTX *mem_ctx, ENUM_SERVICES_STATUS *svc, uint32 num_services); +int cac_InitCacServiceConfig(TALLOC_CTX *mem_ctx, SERVICE_CONFIG *src, CacServiceConfig *dest); + +SMBCSRV *smbc_attr_server(SMBCCTX *context, + const char *server, const char *share, + fstring workgroup, + fstring username, fstring password, + POLICY_HND *pol); + + +#endif /* LIBMSRPC_INTERNAL_H */ -- cgit From 846d52efaed2c3272c2327dcded76b2d335d53d2 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 17 Oct 2005 16:44:26 +0000 Subject: r11124: Commit Chris' fixes for libmsrpc after the rpc_client rewrite. His comments: I've gotten the libmsrpc code to work with TRUNK. I've put the patch at: www.uoguelph.ca/~cnicholl/libmsrpc_trunk_v1.patch.gz It is from revision 11093. I also fixed a minor bug in the svcctl code, the timeout parameter for all the control functions was working in milliseconds instead of seconds. Also fixed bug in Makefile when building libmsrpc.a (This used to be commit d3a52900ec223316779e59a13cea87ecb500bccc) --- source3/include/libmsrpc_internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/include/libmsrpc_internal.h') diff --git a/source3/include/libmsrpc_internal.h b/source3/include/libmsrpc_internal.h index 5073813e21..d00badab36 100644 --- a/source3/include/libmsrpc_internal.h +++ b/source3/include/libmsrpc_internal.h @@ -39,6 +39,8 @@ struct CacServerHandleInternal { BOOL user_supplied_ctx; }; +/*used to get a struct rpc_pipe_client* to be passed into rpccli* calls*/ + /*nessecary prototypes*/ BOOL rid_in_list(uint32 rid, uint32 *list, uint32 list_len); @@ -59,6 +61,9 @@ CacDomainInfo *cac_MakeDomainInfo(TALLOC_CTX *mem_ctx, SAM_UNK_INFO_1 *info1, SA CacService *cac_MakeServiceArray(TALLOC_CTX *mem_ctx, ENUM_SERVICES_STATUS *svc, uint32 num_services); int cac_InitCacServiceConfig(TALLOC_CTX *mem_ctx, SERVICE_CONFIG *src, CacServiceConfig *dest); +/*moved to libmsrpc.h*/ +/*struct rpc_pipe_client *cac_GetPipe(CacServerHandle *hnd, int pi_idx);*/ + SMBCSRV *smbc_attr_server(SMBCCTX *context, const char *server, const char *share, fstring workgroup, -- cgit From d824b98f80ba186030cbb70b3a1e5daf80469ecd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 9 Jul 2007 19:25:36 +0000 Subject: r23779: Change from v2 or later to v3 or later. Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3) --- source3/include/libmsrpc_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/include/libmsrpc_internal.h') diff --git a/source3/include/libmsrpc_internal.h b/source3/include/libmsrpc_internal.h index d00badab36..214bb8c806 100644 --- a/source3/include/libmsrpc_internal.h +++ b/source3/include/libmsrpc_internal.h @@ -5,7 +5,7 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, -- cgit From 153cfb9c83534b09f15cc16205d7adb19b394928 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 Jul 2007 05:23:25 +0000 Subject: r23801: The FSF has moved around a lot. This fixes their Mass Ave address. (This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227) --- source3/include/libmsrpc_internal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/include/libmsrpc_internal.h') diff --git a/source3/include/libmsrpc_internal.h b/source3/include/libmsrpc_internal.h index 214bb8c806..f051272eef 100644 --- a/source3/include/libmsrpc_internal.h +++ b/source3/include/libmsrpc_internal.h @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * along with this program; if not, see . */ #ifndef LIBMSRPC_INTERNAL_H -- cgit From 30191d1a5704ad2b158386b511558972d539ce47 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 18 Oct 2007 17:40:25 -0700 Subject: RIP BOOL. Convert BOOL -> bool. I found a few interesting bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f) --- source3/include/libmsrpc_internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/include/libmsrpc_internal.h') diff --git a/source3/include/libmsrpc_internal.h b/source3/include/libmsrpc_internal.h index f051272eef..623c43f9c3 100644 --- a/source3/include/libmsrpc_internal.h +++ b/source3/include/libmsrpc_internal.h @@ -29,19 +29,19 @@ struct CacServerHandleInternal { uint16 srv_level; /*stores the initialized/active pipes*/ - BOOL pipes[PI_MAX_PIPES]; + bool pipes[PI_MAX_PIPES]; /*underlying smbc context*/ SMBCCTX *ctx; /*did the user supply this SMBCCTX?*/ - BOOL user_supplied_ctx; + bool user_supplied_ctx; }; /*used to get a struct rpc_pipe_client* to be passed into rpccli* calls*/ /*nessecary prototypes*/ -BOOL rid_in_list(uint32 rid, uint32 *list, uint32 list_len); +bool rid_in_list(uint32 rid, uint32 *list, uint32 list_len); int cac_ParseRegPath(char *path, uint32 *reg_type, char **key_name); -- cgit