|
Lines 328-336
static u_int
Link Here
|
| 328 |
agent_encode_alg(const struct sshkey *key, const char *alg) |
328 |
agent_encode_alg(const struct sshkey *key, const char *alg) |
| 329 |
{ |
329 |
{ |
| 330 |
if (alg != NULL && key->type == KEY_RSA) { |
330 |
if (alg != NULL && key->type == KEY_RSA) { |
| 331 |
if (strcmp(alg, "rsa-sha2-256") == 0) |
331 |
if (strcmp(alg, "rsa-sha2-256") == 0 || strcmp(alg, "rsa-sha2-256-cert-v01@openssh.com") == 0) |
| 332 |
return SSH_AGENT_RSA_SHA2_256; |
332 |
return SSH_AGENT_RSA_SHA2_256; |
| 333 |
else if (strcmp(alg, "rsa-sha2-512") == 0) |
333 |
else if (strcmp(alg, "rsa-sha2-512") == 0 || strcmp(alg, "rsa-sha2-512-cert-v01@openssh.com") == 0) |
| 334 |
return SSH_AGENT_RSA_SHA2_512; |
334 |
return SSH_AGENT_RSA_SHA2_512; |
| 335 |
} |
335 |
} |
| 336 |
return 0; |
336 |
return 0; |