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

s4:lib:cmdline: Rename cli_credentials_set_cmdline_callbacks()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2021-03-23 16:27:38 +01:00 committed by Günther Deschner
parent 3f3093933a
commit ca57356b78
3 changed files with 3 additions and 3 deletions

View File

@ -474,7 +474,7 @@ static PyObject *py_creds_set_cmdline_callbacks(PyObject *self, PyObject *unused
PyErr_Format(PyExc_TypeError, "Credentials expected");
return NULL;
}
return PyBool_FromLong(cli_credentials_set_cmdline_callbacks(creds));
return PyBool_FromLong(s4_cli_credentials_set_cmdline_callbacks(creds));
}
static PyObject *py_creds_parse_string(PyObject *self, PyObject *args)

View File

@ -43,7 +43,7 @@ static const char *cmdline_get_userpassword(struct cli_credentials *credentials)
return pwd;
}
bool cli_credentials_set_cmdline_callbacks(struct cli_credentials *cred)
bool s4_cli_credentials_set_cmdline_callbacks(struct cli_credentials *cred)
{
if (isatty(fileno(stdout))) {
cli_credentials_set_password_callback(cred, cmdline_get_userpassword);

View File

@ -57,7 +57,7 @@ static void popt_common_credentials_callback(poptContext con,
cmdline_lp_ctx);
if (!dont_ask) {
cli_credentials_set_cmdline_callbacks(
s4_cli_credentials_set_cmdline_callbacks(
popt_get_cmdline_credentials());
}