Skip to content
Snippets Groups Projects

Issue #3247358: Add support for security key backed SSH key types

Open paul121 requested to merge issue/sshkey-3247358:3247358-add-support-for into 7.x-2.x
2 files
+ 4
1
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 3
0
@@ -490,6 +490,7 @@ function sshkey_parse($key_raw) {
'ssh-rsa',
'ssh-dss',
'ssh-ed25519',
'sk-ssh-ed25519',
]);
if (!in_array($parsed['algorithm'], $algorithms)) {
// Produces a string like "ssh-rsa, ssh-dss, or ssh-ed25519".
@@ -596,8 +597,10 @@ function sshkey_clean_whitespace($key_raw) {
'ssh-dss' => 5,
// https://tools.ietf.org/html/draft-bjh21-ssh-ed25519-02#section-4
'ssh-ed25519' => 2,
'sk-ssh-ed25519' => 2,
// https://tools.ietf.org/html/rfc5656#section-3.1
'ecdsa-sha2-nistp256' => 3,
'sk-ecdsa-sha2-nistp256' => 3,
'ecdsa-sha2-nistp384' => 3,
'ecdsa-sha2-nistp521' => 3,
];
Loading