diff options
Diffstat (limited to 'source3/rpc_client/cli_pipe.c')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 14 |
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. ********************************************************************/ |