[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.233 and 1.234

version 1.233, 2022/05/27 05:01:25 version 1.234, 2022/06/15 16:08: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 930 
Line 927 
                         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(authctxt->pw, key,                          allowed = user_key_allowed(ssh, authctxt->pw, key,
                             pubkey_auth_attempt, remote_ip, remote_host, &opts);                              pubkey_auth_attempt, &opts);
                         break;                          break;
                 case MM_HOSTKEY:                  case MM_HOSTKEY:
                         auth_method = "hostbased";                          auth_method = "hostbased";

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