Bugzilla – Attachment 3216 Details for
Bug 2944
ssh-agent returns incorrect signature type for rsa-sha2-512-cert-v01@openssh.com and rsa-sha2-256-cert-v01@openssh.com
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for authfd.c to consider rsa-sha2-*cert algorithm types to properly request the signature at the agent
authfd-rsa-sha2-certs-signature.patch (text/plain), 611 bytes, created by
Daniel Aschwanden
on 2018-12-18 22:56:59 AEDT
(
hide
)
Description:
Patch for authfd.c to consider rsa-sha2-*cert algorithm types to properly request the signature at the agent
Filename:
MIME Type:
Creator:
Daniel Aschwanden
Created:
2018-12-18 22:56:59 AEDT
Size:
611 bytes
patch
obsolete
>diff --git a/authfd.c b/authfd.c >index ecdd869a..e72309ff 100644 >--- a/authfd.c >+++ b/authfd.c >@@ -328,9 +328,9 @@ static u_int > agent_encode_alg(const struct sshkey *key, const char *alg) > { > if (alg != NULL && key->type == KEY_RSA) { >- if (strcmp(alg, "rsa-sha2-256") == 0) >+ if (strcmp(alg, "rsa-sha2-256") == 0 || strcmp(alg, "rsa-sha2-256-cert-v01@openssh.com") == 0) > return SSH_AGENT_RSA_SHA2_256; >- else if (strcmp(alg, "rsa-sha2-512") == 0) >+ else if (strcmp(alg, "rsa-sha2-512") == 0 || strcmp(alg, "rsa-sha2-512-cert-v01@openssh.com") == 0) > return SSH_AGENT_RSA_SHA2_512; > } > return 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2944
: 3216