summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-03 13:06:14 +0200
committerGünther Deschner <gd@samba.org>2008-04-03 16:27:18 +0200
commitb592abf1ac7bfef2b56ee71a1e68128c8f73aed6 (patch)
tree4e7733fbf37afca940040987a16cc6abed52139d /source3/nsswitch
parent4124c7b7a3ba0a7f63f1ad23bdae643c9a2435b3 (diff)
downloadsamba-b592abf1ac7bfef2b56ee71a1e68128c8f73aed6.tar.gz
samba-b592abf1ac7bfef2b56ee71a1e68128c8f73aed6.tar.bz2
samba-b592abf1ac7bfef2b56ee71a1e68128c8f73aed6.zip
Make more functions in pam_winbind static.
Guenther (This used to be commit ea2175ee0e6288ccb132e86b9dd0bf8a0e4169c9)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/pam_winbind.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index d2aea66bcc..688462c5e5 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -407,7 +407,7 @@ static const struct ntstatus_errors {
{NULL, NULL}
};
-const char *_get_ntstatus_error_string(const char *nt_status_string)
+static const char *_get_ntstatus_error_string(const char *nt_status_string)
{
int i;
for (i=0; ntstatus_errors[i].ntstatus_string != NULL; i++) {
@@ -1690,13 +1690,13 @@ static int _winbind_read_password(pam_handle_t * pamh,
return PAM_SUCCESS;
}
-const char *get_conf_item_string(const pam_handle_t *pamh,
- int argc,
- const char **argv,
- int ctrl,
- dictionary *d,
- const char *item,
- int config_flag)
+static const char *get_conf_item_string(const pam_handle_t *pamh,
+ int argc,
+ const char **argv,
+ int ctrl,
+ dictionary *d,
+ const char *item,
+ int config_flag)
{
int i = 0;
const char *parm_opt = NULL;
@@ -1740,13 +1740,13 @@ out:
return parm_opt;
}
-int get_config_item_int(const pam_handle_t *pamh,
- int argc,
- const char **argv,
- int ctrl,
- dictionary *d,
- const char *item,
- int config_flag)
+static int get_config_item_int(const pam_handle_t *pamh,
+ int argc,
+ const char **argv,
+ int ctrl,
+ dictionary *d,
+ const char *item,
+ int config_flag)
{
int i, parm_opt = -1;
@@ -1792,22 +1792,22 @@ out:
return parm_opt;
}
-const char *get_krb5_cc_type_from_config(const pam_handle_t *pamh,
- int argc,
- const char **argv,
- int ctrl,
- dictionary *d)
+static const char *get_krb5_cc_type_from_config(const pam_handle_t *pamh,
+ int argc,
+ const char **argv,
+ int ctrl,
+ dictionary *d)
{
return get_conf_item_string(pamh, argc, argv, ctrl, d,
"krb5_ccache_type",
WINBIND_KRB5_CCACHE_TYPE);
}
-const char *get_member_from_config(const pam_handle_t *pamh,
- int argc,
- const char **argv,
- int ctrl,
- dictionary *d)
+static const char *get_member_from_config(const pam_handle_t *pamh,
+ int argc,
+ const char **argv,
+ int ctrl,
+ dictionary *d)
{
const char *ret = NULL;
ret = get_conf_item_string(pamh, argc, argv, ctrl, d,
@@ -1821,11 +1821,11 @@ const char *get_member_from_config(const pam_handle_t *pamh,
WINBIND_REQUIRED_MEMBERSHIP);
}
-int get_warn_pwd_expire_from_config(const pam_handle_t *pamh,
- int argc,
- const char **argv,
- int ctrl,
- dictionary *d)
+static int get_warn_pwd_expire_from_config(const pam_handle_t *pamh,
+ int argc,
+ const char **argv,
+ int ctrl,
+ dictionary *d)
{
int ret;
ret = get_config_item_int(pamh, argc, argv, ctrl, d,