[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.25 and 1.26

version 1.25, 2023/03/05 05:34:09 version 1.26, 2024/05/17 00:30:23
Line 44 
Line 44 
   
 /* import */  /* import */
 extern ServerOptions options;  extern ServerOptions options;
   extern struct authmethod_cfg methodcfg_none;
   
 /* "none" is allowed only one time */  extern int none_enabled;
 static int none_enabled = 1;  
   
 static int  static int
 userauth_none(struct ssh *ssh, const char *method)  userauth_none(struct ssh *ssh, const char *method)
Line 57 
Line 57 
         if ((r = sshpkt_get_end(ssh)) != 0)          if ((r = sshpkt_get_end(ssh)) != 0)
                 fatal_fr(r, "parse packet");                  fatal_fr(r, "parse packet");
         if (options.permit_empty_passwd && options.password_authentication)          if (options.permit_empty_passwd && options.password_authentication)
                 return (PRIVSEP(auth_password(ssh, "")));                  return mm_auth_password(ssh, "");
         return (0);          return (0);
 }  }
   
 Authmethod method_none = {  Authmethod method_none = {
         "none",          &methodcfg_none,
         NULL,  
         userauth_none,          userauth_none,
         &none_enabled  
 };  };

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26