File: 1071675.patch

package info (click to toggle)
paramiko 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,424 kB
  • sloc: python: 18,843; xml: 19; makefile: 5
file content (43 lines) | stat: -rw-r--r-- 1,484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: Alexandre Detiste <tchet@debian.org>
Date: Mon, 17 Feb 2025 22:30:38 +0100
Subject: Add identifier for ED25519 certificates

Origin: https://github.com/paramiko/paramiko/pull/2434/commits/a8fb7aa74a03f8b73ae7166864808110629db47b
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071675
Forwarded: not-needed
---
 paramiko/ed25519key.py | 4 ++++
 tests/pkey.py          | 5 ++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

Index: paramiko/paramiko/ed25519key.py
===================================================================
--- paramiko.orig/paramiko/ed25519key.py
+++ paramiko/paramiko/ed25519key.py
@@ -41,6 +41,10 @@ class Ed25519Key(PKey):
 
     name = "ssh-ed25519"
 
+    @classmethod
+    def identifiers(cls):
+        return [cls.name, "ssh-ed25519-cert-v01@openssh.com"]
+
     def __init__(
         self, msg=None, data=None, filename=None, password=None, file_obj=None
     ):
Index: paramiko/tests/pkey.py
===================================================================
--- paramiko.orig/tests/pkey.py
+++ paramiko/tests/pkey.py
@@ -213,7 +213,10 @@ class PKey_:
             ]
 
         def ed25519_is_protocol_name(self):
-            assert Ed25519Key.identifiers() == ["ssh-ed25519"]
+            assert Ed25519Key.identifiers() == [
+                "ssh-ed25519",
+                "ssh-ed25519-cert-v01@openssh.com",
+            ]
 
         def ecdsa_is_all_curve_names(self):
             assert ECDSAKey.identifiers() == [