1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

param: rename lp function and variable from "cli_maxprotocol" to "client_max_protocol"

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Garming Sam 2014-02-04 15:09:08 +13:00 committed by Jeremy Allison
parent 4e4dbc9aea
commit f548585051
10 changed files with 10 additions and 10 deletions

View File

@ -277,7 +277,7 @@ FN_GLOBAL_INTEGER(cldap_port, cldap_port)
FN_GLOBAL_INTEGER(client_ldap_sasl_wrapping, client_ldap_sasl_wrapping)
FN_GLOBAL_INTEGER(client_schannel, client_schannel)
FN_GLOBAL_INTEGER(client_signing, client_signing)
FN_GLOBAL_INTEGER(cli_maxprotocol, cli_maxprotocol)
FN_GLOBAL_INTEGER(client_max_protocol, client_max_protocol)
FN_GLOBAL_INTEGER(cli_minprotocol, cli_minprotocol)
FN_GLOBAL_INTEGER(config_backend, config_backend)
FN_GLOBAL_INTEGER(ctdb_locktime_warn_threshold, ctdb_locktime_warn_threshold)

View File

@ -1367,7 +1367,7 @@ static struct parm_struct parm_table[] = {
.label = "client max protocol",
.type = P_ENUM,
.p_class = P_GLOBAL,
.offset = GLOBAL_VAR(cli_maxprotocol),
.offset = GLOBAL_VAR(client_max_protocol),
.special = NULL,
.enum_list = enum_protocol,
.flags = FLAG_ADVANCED,

View File

@ -5624,7 +5624,7 @@ static int do_message_op(struct user_auth_info *a_info)
/* Ensure we have a password (or equivalent). */
set_cmdline_auth_info_getpass(auth_info);
max_protocol = lp_cli_maxprotocol();
max_protocol = lp_client_max_protocol();
if (tar_type) {
if (cmdstr)

View File

@ -111,7 +111,7 @@ static WERROR libnetapi_open_ipc_connection(struct libnetapi_ctx *ctx,
server_name, "IPC$",
auth_info,
false, false,
lp_cli_maxprotocol(),
lp_client_max_protocol(),
0, 0x20, &cli_ipc);
if (NT_STATUS_IS_OK(status)) {
cli_set_username(cli_ipc, ctx->username);

View File

@ -3148,7 +3148,7 @@ static void cli_start_connection_connected(struct tevent_req *subreq)
subreq = smbXcli_negprot_send(state, state->ev, state->cli->conn,
state->cli->timeout,
lp_cli_minprotocol(),
lp_cli_maxprotocol());
lp_client_max_protocol());
if (tevent_req_nomem(subreq, req)) {
return;
}

View File

@ -452,7 +452,7 @@ SMBC_server_internal(TALLOC_CTX *ctx,
status = smbXcli_negprot(c->conn, c->timeout,
lp_cli_minprotocol(),
lp_cli_maxprotocol());
lp_client_max_protocol());
if (!NT_STATUS_IS_OK(status)) {
cli_shutdown(c);
errno = ETIMEDOUT;

View File

@ -821,7 +821,7 @@ static void init_globals(bool reinit_globals)
Globals.max_open_files = max_open_files();
Globals.srv_maxprotocol = PROTOCOL_SMB3_00;
Globals.srv_minprotocol = PROTOCOL_LANMAN1;
Globals.cli_maxprotocol = PROTOCOL_NT1;
Globals.client_max_protocol = PROTOCOL_NT1;
Globals.cli_minprotocol = PROTOCOL_CORE;
Globals._security = SEC_AUTO;
Globals.encrypted_passwords = true;

View File

@ -548,7 +548,7 @@ static void usage(void)
argc -= optind;
argv += optind;
max_protocol = lp_cli_maxprotocol();
max_protocol = lp_client_max_protocol();
cli = connect_one(share);
if (!cli) {

View File

@ -906,7 +906,7 @@ static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
result = smbXcli_negprot((*cli)->conn, (*cli)->timeout,
lp_cli_minprotocol(),
lp_cli_maxprotocol());
lp_client_max_protocol());
if (!NT_STATUS_IS_OK(result)) {
DEBUG(1, ("cli_negprot failed: %s\n", nt_errstr(result)));

View File

@ -40,7 +40,7 @@ void lpcfg_smbcli_options(struct loadparm_context *lp_ctx,
options->signing = lpcfg_client_signing(lp_ctx);
options->request_timeout = SMB_REQUEST_TIMEOUT;
options->ntstatus_support = lpcfg_nt_status_support(lp_ctx);
options->max_protocol = lpcfg_cli_maxprotocol(lp_ctx);
options->max_protocol = lpcfg_client_max_protocol(lp_ctx);
options->unicode = lpcfg_unicode(lp_ctx);
options->use_oplocks = true;
options->use_level2_oplocks = true;