]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:lib:cmdline: Rename cli_credentials_set_cmdline_callbacks()
authorAndreas Schneider <asn@samba.org>
Tue, 23 Mar 2021 15:27:38 +0000 (16:27 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 24 Mar 2021 00:55:32 +0000 (00:55 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
auth/credentials/pycredentials.c
source4/lib/cmdline/credentials.c
source4/lib/cmdline/popt_credentials.c

index 95dde276ef72ba9c10afb6a6aa97d604409e3327..250a16018e35d33328c690ba833d90b672058f9d 100644 (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)
index fb517f3c0847e02271600b9c77189aa4a02a8cb4..6ee443411090f58ca48be89f8867c565af24b6d9 100644 (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);
index 7d8963da99e9227b37c1e88ebce7f5f1ce0fc713..694b6ef8b95009b445b02ae43cef80a22d89317b 100644 (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());
                }