[seahorse] Add basic support for ECDSA and ED25519 SSH Keys.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] Add basic support for ECDSA and ED25519 SSH Keys.
- Date: Thu, 8 Mar 2018 21:29:31 +0000 (UTC)
commit 1fa74341dbb54796e94bdf2dd66909dd29209df2
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Mar 4 12:13:32 2018 +0100
Add basic support for ECDSA and ED25519 SSH Keys.
ssh/algorithm.vala | 18 +++++++++++++++++-
ssh/seahorse-ssh-generate.ui | 2 ++
2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/ssh/algorithm.vala b/ssh/algorithm.vala
index c300d91..9dd75fb 100644
--- a/ssh/algorithm.vala
+++ b/ssh/algorithm.vala
@@ -24,7 +24,9 @@
public enum Seahorse.Ssh.Algorithm {
UNKNOWN,
RSA,
- DSA;
+ DSA,
+ ECDSA,
+ ED25519;
/**
* Returns a (non-localized) string representation.
@@ -39,6 +41,10 @@ public enum Seahorse.Ssh.Algorithm {
return "RSA";
case DSA:
return "DSA";
+ case ECDSA:
+ return "ECDSA";
+ case ED25519:
+ return "ED25519";
default:
assert_not_reached ();
};
@@ -60,6 +66,10 @@ public enum Seahorse.Ssh.Algorithm {
case "dsa":
case "dss":
return DSA;
+ case "ecdsa":
+ return ECDSA;
+ case "ed25519":
+ return ED25519;
default:
return UNKNOWN;
}
@@ -82,6 +92,12 @@ public enum Seahorse.Ssh.Algorithm {
if (("dsa" in str_down) || ("dss" in str_down))
return DSA;
+ if ("ecdsa" in str_down)
+ return ECDSA;
+
+ if ("ed25519" in str_down)
+ return ED25519;
+
return UNKNOWN;
}
}
diff --git a/ssh/seahorse-ssh-generate.ui b/ssh/seahorse-ssh-generate.ui
index fc34a0b..459f6f4 100644
--- a/ssh/seahorse-ssh-generate.ui
+++ b/ssh/seahorse-ssh-generate.ui
@@ -253,6 +253,8 @@
<items>
<item translatable="yes">RSA</item>
<item translatable="yes">DSA</item>
+ <item translatable="yes">ECDSA</item>
+ <item translatable="yes">ED25519</item>
</items>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]