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

Diff for /src/usr.bin/ssh/auth-passwd.c between version 1.44 and 1.45

version 1.44, 2014/07/15 15:54:14 version 1.45, 2016/07/21 01:39:35
Line 63 
Line 63 
 #define DAY             (24L * 60 * 60) /* 1 day in seconds */  #define DAY             (24L * 60 * 60) /* 1 day in seconds */
 #define TWO_WEEKS       (2L * 7 * DAY)  /* 2 weeks in seconds */  #define TWO_WEEKS       (2L * 7 * DAY)  /* 2 weeks in seconds */
   
   #define MAX_PASSWORD_LEN        1024
   
 static void  static void
 disable_forwarding(void)  disable_forwarding(void)
 {  {
Line 80 
Line 82 
 {  {
         struct passwd * pw = authctxt->pw;          struct passwd * pw = authctxt->pw;
         int ok = authctxt->valid;          int ok = authctxt->valid;
   
           if (strlen(password) > MAX_PASSWORD_LEN)
                   return 0;
   
         if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)          if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)
                 ok = 0;                  ok = 0;

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45