| 1 |
From: Alexandre Detiste <[email protected]> |
| 2 |
Date: Mon, 17 Feb 2025 22:30:38 +0100 |
| 3 |
Subject: Add identifier for ED25519 certificates |
| 4 |
|
| 5 |
Origin: https://github.com/paramiko/paramiko/pull/2434/commits/a8fb7aa74a03f8b73ae7166864808110629db47b |
| 6 |
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071675 |
| 7 |
Forwarded: not-needed |
| 8 |
--- |
| 9 |
paramiko/ed25519key.py | 4 ++++ |
| 10 |
tests/pkey.py | 5 ++++- |
| 11 |
2 files changed, 8 insertions(+), 1 deletion(-) |
| 12 |
|
| 13 |
Index: paramiko/paramiko/ed25519key.py |
| 14 |
=================================================================== |
| 15 |
--- paramiko.orig/paramiko/ed25519key.py |
| 16 |
+++ paramiko/paramiko/ed25519key.py |
| 17 |
@@ -41,6 +41,10 @@ class Ed25519Key(PKey): |
| 18 |
|
| 19 |
name = "ssh-ed25519" |
| 20 |
|
| 21 |
+ @classmethod |
| 22 |
+ def identifiers(cls): |
| 23 |
+ return [cls.name, "[email protected]"] |
| 24 |
+ |
| 25 |
def __init__( |
| 26 |
self, msg=None, data=None, filename=None, password=None, file_obj=None |
| 27 |
): |
| 28 |
Index: paramiko/tests/pkey.py |
| 29 |
=================================================================== |
| 30 |
--- paramiko.orig/tests/pkey.py |
| 31 |
+++ paramiko/tests/pkey.py |
| 32 |
@@ -229,7 +229,10 @@ class PKey_: |
| 33 |
] |
| 34 |
|
| 35 |
def ed25519_is_protocol_name(self): |
| 36 |
- assert Ed25519Key.identifiers() == ["ssh-ed25519"] |
| 37 |
+ assert Ed25519Key.identifiers() == [ |
| 38 |
+ "ssh-ed25519", |
| 39 |
+ "[email protected]", |
| 40 |
+ ] |
| 41 |
|
| 42 |
def ecdsa_is_all_curve_names(self): |
| 43 |
assert ECDSAKey.identifiers() == [ |