version 1.124, 2023/02/17 03:06:18 |
version 1.125, 2023/02/17 04:22:50 |
|
|
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. */ |