made a couple of local fns static
authorAndrew Tridgell <tridge@samba.org>
Mon, 10 Sep 2001 11:23:41 +0000 (11:23 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 10 Sep 2001 11:23:41 +0000 (11:23 +0000)
source/auth/auth_rhosts.c
source/smbd/auth_rhosts.c
source/smbd/chgpasswd.c

index ffb92122643b2e1546b0ebbe7d5972a024ff0c3a..b447bed5d12340f59daea51527eecc15217b0748 100644 (file)
@@ -134,7 +134,7 @@ static BOOL check_user_equiv(char *user, char *remote, char *equiv_file)
 /****************************************************************************
 check for a possible hosts equiv or rhosts entry for the user
 ****************************************************************************/
-BOOL check_hosts_equiv(char *user)
+static BOOL check_hosts_equiv(char *user)
 {
   char *fname = NULL;
   pstring rhostsfile;
index ffb92122643b2e1546b0ebbe7d5972a024ff0c3a..b447bed5d12340f59daea51527eecc15217b0748 100644 (file)
@@ -134,7 +134,7 @@ static BOOL check_user_equiv(char *user, char *remote, char *equiv_file)
 /****************************************************************************
 check for a possible hosts equiv or rhosts entry for the user
 ****************************************************************************/
-BOOL check_hosts_equiv(char *user)
+static BOOL check_hosts_equiv(char *user)
 {
   char *fname = NULL;
   pstring rhostsfile;
index 030c69bd4a7a317f06221fe492af36ea04971135..8dff2f7d817e1ab32eb0235ea325f97d627ae599 100644 (file)
 extern int DEBUGLEVEL;
 extern struct passdb_ops pdb_ops;
 
+static BOOL check_oem_password(char *user,
+                              uchar * lmdata, uchar * lmhash,
+                              uchar * ntdata, uchar * nthash,
+                              SAM_ACCOUNT **hnd, char *new_passwd,
+                              int new_passwd_size);
+
 #if ALLOW_CHANGE_PASSWORD
 
 static int findpty(char **slave)
@@ -704,11 +710,11 @@ BOOL pass_oem_change(char *user,
  but does use the lm OEM password to check the nt hashed-hash.
 
 ************************************************************/
-BOOL check_oem_password(char *user,
-                       uchar * lmdata, uchar * lmhash,
-                       uchar * ntdata, uchar * nthash,
-                       SAM_ACCOUNT **hnd, char *new_passwd,
-                       int new_passwd_size)
+static BOOL check_oem_password(char *user,
+                              uchar * lmdata, uchar * lmhash,
+                              uchar * ntdata, uchar * nthash,
+                              SAM_ACCOUNT **hnd, char *new_passwd,
+                              int new_passwd_size)
 {
        static uchar null_pw[16];
        static uchar null_ntpw[16];