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

Diff for /src/usr.bin/ssh/compat.c between version 1.124 and 1.125

version 1.124, 2023/02/17 03:06:18 version 1.125, 2023/02/17 04:22:50
Line 147 
Line 147 
 char *  char *
 compat_pkalg_proposal(struct ssh *ssh, char *pkalg_prop)  compat_pkalg_proposal(struct ssh *ssh, char *pkalg_prop)
 {  {
         if (!(ssh->compat & SSH_BUG_RSASIGMD5))          return xstrdup(pkalg_prop);
                 return xstrdup(pkalg_prop);  
         debug2_f("original public key proposal: %s", pkalg_prop);  
         if ((pkalg_prop = match_filter_denylist(pkalg_prop, "ssh-rsa")) == NULL)  
                 fatal("match_filter_denylist failed");  
         debug2_f("compat public key proposal: %s", pkalg_prop);  
         if (*pkalg_prop == '\0')  
                 fatal("No supported PK algorithms found");  
         return pkalg_prop;  
 }  }
   
 /* Always returns pointer to allocated memory, caller must free. */  /* Always returns pointer to allocated memory, caller must free. */

Legend:
Removed from v.1.124  
changed lines
  Added in v.1.125