Bugzilla – Attachment 2878 Details for
Bug 2623
AuthorizedKeysFile split pub key and signature with tab `\t` not work.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Allow a single tab instead of space between key type and key.
openssh-key-tab.patch (text/plain), 853 bytes, created by
Darren Tucker
on 2016-10-12 04:18:29 AEDT
(
hide
)
Description:
Allow a single tab instead of space between key type and key.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2016-10-12 04:18:29 AEDT
Size:
853 bytes
patch
obsolete
>diff --git a/sshkey.c b/sshkey.c >index 25a360b..b19e6c4 100644 >--- a/sshkey.c >+++ b/sshkey.c >@@ -1269,8 +1269,8 @@ sshkey_read(struct sshkey *ret, char **cpp) > case KEY_ECDSA_CERT: > case KEY_RSA_CERT: > case KEY_ED25519_CERT: >- space = strchr(cp, ' '); >- if (space == NULL) >+ if ((space = strchr(cp, ' ')) == NULL || >+ (space = strchr(cp, '\t')) == NULL) > return SSH_ERR_INVALID_FORMAT; > *space = '\0'; > type = sshkey_type_from_name(cp); >@@ -1288,8 +1288,8 @@ sshkey_read(struct sshkey *ret, char **cpp) > if ((blob = sshbuf_new()) == NULL) > return SSH_ERR_ALLOC_FAIL; > /* trim comment */ >- space = strchr(cp, ' '); >- if (space) { >+ if ((space = strchr(cp, ' ')) != NULL || >+ (space = strchr(cp, '\t')) != NULL) { > /* advance 'space': skip whitespace */ > *space++ = '\0'; > while (*space == ' ' || *space == '\t')
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 2623
: 2878