Setup: Allow ecdsa keys to be entered

Fixes #516
This commit is contained in:
Vishesh Handa
2021-06-19 15:23:00 +02:00
parent 13c64d74f5
commit 1b23cb4da9
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
- "More robust error handling"
bugs:
- text: "Fix ShareTo being broken in the last release"
- text: "Support for non-rsa ssh keys - #516"
- version: "1.76"
date: 2021-04-23

View File

@ -24,7 +24,7 @@ class PublicKeyEditor extends StatelessWidget {
}
val = val.trim();
if (!val.startsWith("ssh-rsa ")) {
if (!val.startsWith("ssh-rsa ") && !val.startsWith("ecdsa-sha2")) {
return tr("setup.keyEditors.public");
}
return null;