summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-01 20:21:52 +0100
committerVolker Lendecke <vl@samba.org>2009-11-08 00:28:36 +0100
commit70c698fd547c4bc19cf77693608bbb34acac40b5 (patch)
tree84f145cb65e7dc14d3cd461c9289f3c92459353b /source3/rpc_client
parentbe88a126ea50ea7e41583f402013c63234305e48 (diff)
downloadsamba-70c698fd547c4bc19cf77693608bbb34acac40b5.tar.gz
samba-70c698fd547c4bc19cf77693608bbb34acac40b5.tar.bz2
samba-70c698fd547c4bc19cf77693608bbb34acac40b5.zip
s3: Do not directly reference the ndr_table_* in rpcclient
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 9ff84f8b6d..bd7bf325c4 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -195,6 +195,20 @@ const char *get_pipe_name_from_syntax(TALLOC_CTX *mem_ctx,
return result;
}
+bool ndr_syntax_from_string(const char *s, uint32_t version,
+ struct ndr_syntax_id *syntax)
+{
+ NTSTATUS status;
+ status = GUID_from_string(s, &syntax->uuid);
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(10, ("GUID_from_string returned %s\n",
+ nt_errstr(status)));
+ return false;
+ }
+ syntax->if_version = version;
+ return true;
+}
+
/********************************************************************
Map internal value to wire value.
********************************************************************/