From 70c698fd547c4bc19cf77693608bbb34acac40b5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 1 Nov 2009 20:21:52 +0100 Subject: s3: Do not directly reference the ndr_table_* in rpcclient --- source3/rpc_client/cli_pipe.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source3/rpc_client/cli_pipe.c') 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. ********************************************************************/ -- cgit