s3:winbind: Make the pam_auth subfunctions static
authorVolker Lendecke <vl@samba.org>
Sat, 5 Sep 2009 15:00:21 +0000 (17:00 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 5 Sep 2009 15:00:21 +0000 (17:00 +0200)
source3/winbindd/winbindd_pam.c
source3/winbindd/winbindd_proto.h

index 56657928a47eead79c24763aa895874d6f60177f..b7a9888f0c2dff788e92f38c2bca20444a3e87b1 100644 (file)
@@ -854,9 +854,9 @@ void winbindd_pam_auth(struct winbindd_cli_state *state)
        request_error(state);
 }
 
-NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
-                                      struct winbindd_cli_state *state,
-                                      struct netr_SamInfo3 **info3)
+static NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
+                                             struct winbindd_cli_state *state,
+                                             struct netr_SamInfo3 **info3)
 {
        NTSTATUS result = NT_STATUS_LOGON_FAILURE;
        uint16 max_allowed_bad_attempts;
@@ -1110,9 +1110,9 @@ failed:
        return NT_STATUS_LOGON_FAILURE;
 }
 
-NTSTATUS winbindd_dual_pam_auth_kerberos(struct winbindd_domain *domain,
-                                        struct winbindd_cli_state *state,
-                                        struct netr_SamInfo3 **info3)
+static NTSTATUS winbindd_dual_pam_auth_kerberos(struct winbindd_domain *domain,
+                                               struct winbindd_cli_state *state,
+                                               struct netr_SamInfo3 **info3)
 {
        struct winbindd_domain *contact_domain;
        fstring name_domain, name_user;
@@ -1181,9 +1181,9 @@ typedef   NTSTATUS (*netlogon_fn_t)(struct rpc_pipe_client *cli,
                                  DATA_BLOB nt_response,
                                  struct netr_SamInfo3 **info3);
 
-NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
-                                        struct winbindd_cli_state *state,
-                                        struct netr_SamInfo3 **info3)
+static NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
+                                               struct winbindd_cli_state *state,
+                                               struct netr_SamInfo3 **info3)
 {
 
        struct rpc_pipe_client *netlogon_pipe;
index fba6bd2d46c341a89d66f39c5edc4a0a9097c65b..086fa5256331606babb96452ac4988876586d306 100644 (file)
@@ -478,15 +478,6 @@ void ndr_print_winbindd_domain(struct ndr_print *ndr,
 struct winbindd_domain *find_auth_domain(struct winbindd_cli_state *state, 
                                        const char *domain_name);
 void winbindd_pam_auth(struct winbindd_cli_state *state);
-NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
-                                      struct winbindd_cli_state *state,
-                                      struct netr_SamInfo3 **info3);
-NTSTATUS winbindd_dual_pam_auth_kerberos(struct winbindd_domain *domain,
-                                        struct winbindd_cli_state *state, 
-                                        struct netr_SamInfo3 **info3);
-NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
-                                        struct winbindd_cli_state *state,
-                                        struct netr_SamInfo3 **info3);
 enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
                                            struct winbindd_cli_state *state) ;
 void winbindd_pam_auth_crap(struct winbindd_cli_state *state);