[BACK]Return to auth2-none.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/auth2-none.c between version 1.1 and 1.2

version 1.1, 2002/05/25 18:51:07 version 1.2, 2002/05/31 11:35:15
Line 38 
Line 38 
 /* import */  /* import */
 extern ServerOptions options;  extern ServerOptions options;
   
   /* "none" is allowed only one time */
   static int none_enabled = 1;
   
 char *  char *
 auth2_read_banner(void)  auth2_read_banner(void)
 {  {
Line 88 
Line 91 
         return;          return;
 }  }
   
 int  static int
 userauth_none(Authctxt *authctxt)  userauth_none(Authctxt *authctxt)
 {  {
         static int called = 0;          none_enabled = 0;
   
         if (called)  
                 return (0);  
         called = 1;  
         packet_check_eom();          packet_check_eom();
         userauth_banner();          userauth_banner();
         return (authctxt->valid ? PRIVSEP(auth_password(authctxt, "")) : 0);          return (authctxt->valid ? PRIVSEP(auth_password(authctxt, "")) : 0);
 }  }
   
   Authmethod method_none = {
           "none",
           userauth_none,
           &none_enabled
   };

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2