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

Diff for /src/usr.bin/ssh/Attic/auth-rsa.c between version 1.23 and 1.24

version 1.23, 2000/04/29 18:11:51 version 1.24, 2000/06/06 19:32:13
Line 133 
Line 133 
         unsigned long linenum = 0;          unsigned long linenum = 0;
         struct stat st;          struct stat st;
         RSA *pk;          RSA *pk;
           int mname, mip;
   
         /* Temporarily use the user's uid. */          /* Temporarily use the user's uid. */
         temporarily_use_uid(pw->pw_uid);          temporarily_use_uid(pw->pw_uid);
Line 390 
Line 391 
                                         }                                          }
                                         patterns[i] = 0;                                          patterns[i] = 0;
                                         options++;                                          options++;
                                         if (!match_hostname(get_canonical_hostname(), patterns,                                          /*
                                                      strlen(patterns)) &&                                           * Deny access if we get a negative
                                             !match_hostname(get_remote_ipaddr(), patterns,                                           * match for the hostname or the ip
                                                      strlen(patterns))) {                                           * or if we get not match at all
                                            */
                                           mname = match_hostname(get_canonical_hostname(),
                                               patterns, strlen(patterns));
                                           mip = match_hostname(get_remote_ipaddr(),
                                               patterns, strlen(patterns));
                                           if (mname == -1 || mip == -1 ||
                                               (mname != 1 && mip != 1)) {
                                                 log("RSA authentication tried for %.100s with correct key but not from a permitted host (host=%.200s, ip=%.200s).",                                                  log("RSA authentication tried for %.100s with correct key but not from a permitted host (host=%.200s, ip=%.200s).",
                                                     pw->pw_name, get_canonical_hostname(),                                                      pw->pw_name, get_canonical_hostname(),
                                                     get_remote_ipaddr());                                                      get_remote_ipaddr());

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24