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

Diff for /src/usr.bin/ssh/auth2-passwd.c between version 1.21 and 1.22

version 1.21, 2022/05/27 04:29:40 version 1.22, 2024/05/17 00:30:23
Line 45 
Line 45 
   
 /* import */  /* import */
 extern ServerOptions options;  extern ServerOptions options;
   extern struct authmethod_cfg methodcfg_passwd;
   
 static int  static int
 userauth_passwd(struct ssh *ssh, const char *method)  userauth_passwd(struct ssh *ssh, const char *method)
Line 64 
Line 65 
   
         if (change)          if (change)
                 logit("password change not supported");                  logit("password change not supported");
         else if (PRIVSEP(auth_password(ssh, password)) == 1)          else if (mm_auth_password(ssh, password) == 1)
                 authenticated = 1;                  authenticated = 1;
         freezero(password, len);          freezero(password, len);
         return authenticated;          return authenticated;
 }  }
   
 Authmethod method_passwd = {  Authmethod method_passwd = {
         "password",          &methodcfg_passwd,
         NULL,  
         userauth_passwd,          userauth_passwd,
         &options.password_authentication  
 };  };

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22