mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
645711c602
The main volume of this patch was what I started working on today: - Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context. - Uses sepereate inner loops for some of the DCE/RPC tests The other and more important part of this patch fixes issues surrounding the new credentials framwork: This makes the struct cli_credentials always a talloc() structure, rather than on the stack. Parts of the cli_credentials code already assumed this. There were other issues, particularly in the DCERPC over SMB handling, as well as little things that had to be tidied up before test_w2k3.sh would start to pass. Andrew Bartlett (This used to be commit 0453f9d05d2e336fba1f85dbf2718d01fa2bf778)
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/*
|
|
Unix SMB/CIFS implementation.
|
|
test suite for dcom operations
|
|
|
|
Copyright (C) Jelmer Vernooij 2004
|
|
|
|
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.
|
|
*/
|
|
|
|
#include "includes.h"
|
|
#include "librpc/gen_ndr/ndr_dcom.h"
|
|
#include "librpc/gen_ndr/ndr_oxidresolver.h"
|
|
|
|
BOOL torture_rpc_dcom(void)
|
|
{
|
|
NTSTATUS status;
|
|
struct dcerpc_pipe *p;
|
|
TALLOC_CTX *mem_ctx;
|
|
BOOL ret = True;
|
|
|
|
mem_ctx = talloc_init("torture_rpc_dcom");
|
|
|
|
status = torture_rpc_connection(mem_ctx, &p,
|
|
DCERPC_IOXIDRESOLVER_NAME,
|
|
DCERPC_IOXIDRESOLVER_UUID,
|
|
DCERPC_IOXIDRESOLVER_VERSION);
|
|
if (!NT_STATUS_IS_OK(status)) {
|
|
ret = False;
|
|
}
|
|
|
|
printf("\n");
|
|
|
|
talloc_free(mem_ctx);
|
|
return ret;
|
|
}
|