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

Diff for /src/usr.bin/ssh/monitor.c between version 1.232 and 1.233

version 1.232, 2022/02/25 02:09:27 version 1.233, 2022/05/27 05:01:25
Line 902 
Line 902 
         u_int type = 0;          u_int type = 0;
         int r, allowed = 0;          int r, allowed = 0;
         struct sshauthopt *opts = NULL;          struct sshauthopt *opts = NULL;
           const char *remote_ip = ssh_remote_ipaddr(ssh);
           const char *remote_host = auth_get_canonical_hostname(ssh,
               options.use_dns);
   
         debug3_f("entering");          debug3_f("entering");
         if ((r = sshbuf_get_u32(m, &type)) != 0 ||          if ((r = sshbuf_get_u32(m, &type)) != 0 ||
Line 927 
Line 930 
                         if (!key_base_type_match(auth_method, key,                          if (!key_base_type_match(auth_method, key,
                             options.pubkey_accepted_algos))                              options.pubkey_accepted_algos))
                                 break;                                  break;
                         allowed = user_key_allowed(ssh, authctxt->pw, key,                          allowed = user_key_allowed(authctxt->pw, key,
                             pubkey_auth_attempt, &opts);                              pubkey_auth_attempt, remote_ip, remote_host, &opts);
                         break;                          break;
                 case MM_HOSTKEY:                  case MM_HOSTKEY:
                         auth_method = "hostbased";                          auth_method = "hostbased";

Legend:
Removed from v.1.232  
changed lines
  Added in v.1.233