mirror of
https://github.com/samba-team/samba.git
synced 2025-09-04 09:44:20 +03:00
s4:torture/rpc: s/pipe/p/ in order to avoid compiler warnings
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
committed by
Günther Deschner
parent
83bd478c9b
commit
b51cc6ea37
@@ -592,7 +592,7 @@ static bool test_validate_trust(struct torture_context *tctx,
|
|||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
struct cli_credentials *credentials;
|
struct cli_credentials *credentials;
|
||||||
struct dcerpc_binding *b;
|
struct dcerpc_binding *b;
|
||||||
struct dcerpc_pipe *pipe;
|
struct dcerpc_pipe *p;
|
||||||
|
|
||||||
struct netr_GetForestTrustInformation fr;
|
struct netr_GetForestTrustInformation fr;
|
||||||
struct lsa_ForestTrustInformation *forest_trust_info;
|
struct lsa_ForestTrustInformation *forest_trust_info;
|
||||||
@@ -619,7 +619,7 @@ static bool test_validate_trust(struct torture_context *tctx,
|
|||||||
trusted_dom_name, CRED_SPECIFIED);
|
trusted_dom_name, CRED_SPECIFIED);
|
||||||
cli_credentials_set_secure_channel_type(credentials, SEC_CHAN_DOMAIN);
|
cli_credentials_set_secure_channel_type(credentials, SEC_CHAN_DOMAIN);
|
||||||
|
|
||||||
status = dcerpc_pipe_connect_b(tctx, &pipe, b,
|
status = dcerpc_pipe_connect_b(tctx, &p, b,
|
||||||
&ndr_table_netlogon, credentials,
|
&ndr_table_netlogon, credentials,
|
||||||
tctx->ev, tctx->lp_ctx);
|
tctx->ev, tctx->lp_ctx);
|
||||||
|
|
||||||
@@ -631,7 +631,7 @@ static bool test_validate_trust(struct torture_context *tctx,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!test_SetupCredentials3(pipe, tctx, NETLOGON_NEG_AUTH2_ADS_FLAGS | NETLOGON_NEG_SUPPORTS_AES,
|
if (!test_SetupCredentials3(p, tctx, NETLOGON_NEG_AUTH2_ADS_FLAGS | NETLOGON_NEG_SUPPORTS_AES,
|
||||||
credentials, &creds)) {
|
credentials, &creds)) {
|
||||||
torture_comment(tctx, "test_SetupCredentials3 failed.\n");
|
torture_comment(tctx, "test_SetupCredentials3 failed.\n");
|
||||||
return false;
|
return false;
|
||||||
@@ -640,7 +640,7 @@ static bool test_validate_trust(struct torture_context *tctx,
|
|||||||
netlogon_creds_client_authenticator(creds, &a);
|
netlogon_creds_client_authenticator(creds, &a);
|
||||||
|
|
||||||
r.in.server_name = talloc_asprintf(tctx, "\\\\%s",
|
r.in.server_name = talloc_asprintf(tctx, "\\\\%s",
|
||||||
dcerpc_server_name(pipe));
|
dcerpc_server_name(p));
|
||||||
r.in.account_name = talloc_asprintf(tctx, "%s$", trusted_dom_name);
|
r.in.account_name = talloc_asprintf(tctx, "%s$", trusted_dom_name);
|
||||||
r.in.secure_channel_type = cli_credentials_get_secure_channel_type(credentials);
|
r.in.secure_channel_type = cli_credentials_get_secure_channel_type(credentials);
|
||||||
r.in.computer_name = trusted_dom_name;
|
r.in.computer_name = trusted_dom_name;
|
||||||
@@ -652,7 +652,7 @@ static bool test_validate_trust(struct torture_context *tctx,
|
|||||||
r.out.trust_info = &trust_info;
|
r.out.trust_info = &trust_info;
|
||||||
|
|
||||||
torture_assert_ntstatus_ok(tctx,
|
torture_assert_ntstatus_ok(tctx,
|
||||||
dcerpc_netr_ServerGetTrustInfo_r(pipe->binding_handle, tctx, &r),
|
dcerpc_netr_ServerGetTrustInfo_r(p->binding_handle, tctx, &r),
|
||||||
"ServerGetTrustInfo failed");
|
"ServerGetTrustInfo failed");
|
||||||
torture_assert_ntstatus_ok(tctx, r.out.result,
|
torture_assert_ntstatus_ok(tctx, r.out.result,
|
||||||
"ServerGetTrustInfo failed");
|
"ServerGetTrustInfo failed");
|
||||||
@@ -684,7 +684,7 @@ static bool test_validate_trust(struct torture_context *tctx,
|
|||||||
netlogon_creds_client_authenticator(creds, &a);
|
netlogon_creds_client_authenticator(creds, &a);
|
||||||
|
|
||||||
fr.in.server_name = talloc_asprintf(tctx, "\\\\%s",
|
fr.in.server_name = talloc_asprintf(tctx, "\\\\%s",
|
||||||
dcerpc_server_name(pipe));
|
dcerpc_server_name(p));
|
||||||
fr.in.computer_name = trusted_dom_name;
|
fr.in.computer_name = trusted_dom_name;
|
||||||
fr.in.credential = &a;
|
fr.in.credential = &a;
|
||||||
fr.in.flags = 0;
|
fr.in.flags = 0;
|
||||||
@@ -692,7 +692,7 @@ static bool test_validate_trust(struct torture_context *tctx,
|
|||||||
fr.out.forest_trust_info = &forest_trust_info;
|
fr.out.forest_trust_info = &forest_trust_info;
|
||||||
|
|
||||||
torture_assert_ntstatus_ok(tctx,
|
torture_assert_ntstatus_ok(tctx,
|
||||||
dcerpc_netr_GetForestTrustInformation_r(pipe->binding_handle, tctx, &fr),
|
dcerpc_netr_GetForestTrustInformation_r(p->binding_handle, tctx, &fr),
|
||||||
"netr_GetForestTrustInformation failed");
|
"netr_GetForestTrustInformation failed");
|
||||||
if (NT_STATUS_IS_ERR(fr.out.result)) {
|
if (NT_STATUS_IS_ERR(fr.out.result)) {
|
||||||
torture_comment(tctx,
|
torture_comment(tctx,
|
||||||
|
Reference in New Issue
Block a user