File: remove-DSA-keys.patch

package info (click to toggle)
libcloud 3.8.0%2Brepack-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,704 kB
  • sloc: python: 158,354; xml: 19,482; sh: 27; makefile: 11
file content (59 lines) | stat: -rw-r--r-- 2,309 bytes parent folder | download
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Description: Drop support for (the obsolete) DSA keys, since paramiko 4.0 no
 longer supports them.
Bug-Debian: https://bugs.debian.org/1113939
Author: Santiago Ruano Rincón <santiago@debian.org>
Last-Update: 2025-09-29

Index: libcloud/libcloud/compute/ssh.py
===================================================================
--- libcloud.orig/libcloud/compute/ssh.py
+++ libcloud/libcloud/compute/ssh.py
@@ -658,7 +658,6 @@ class ParamikoSSHClient(BaseSSHClient):
         """
         key_types = [
             (paramiko.RSAKey, "RSA"),
-            (paramiko.DSSKey, "DSA"),
             (paramiko.ECDSAKey, "EC"),
         ]
 
Index: libcloud/libcloud/test/compute/test_ssh_client.py
===================================================================
--- libcloud.orig/libcloud/test/compute/test_ssh_client.py
+++ libcloud/libcloud/test/compute/test_ssh_client.py
@@ -317,19 +317,7 @@ class ParamikoSSHClientTests(LibcloudTes
         self.assertTrue(isinstance(pkey, paramiko.RSAKey))
 
         # 2. DSA key type with header which is not supported by paramiko
-        path = os.path.join(
-            os.path.dirname(__file__),
-            "fixtures",
-            "misc",
-            "test_dsa_non_paramiko_recognized_header.key",
-        )
-
-        with open(path) as fp:
-            private_key = fp.read()
-
-        pkey = client._get_pkey_object(key=private_key)
-        self.assertTrue(pkey)
-        self.assertTrue(isinstance(pkey, paramiko.DSSKey))
+        # Removed
 
         # 3. ECDSA key type with header which is not supported by paramiko
         path = os.path.join(
@@ -361,14 +349,7 @@ class ParamikoSSHClientTests(LibcloudTes
         self.assertTrue(isinstance(pkey, paramiko.RSAKey))
 
         # 2. DSA key type with header which is not supported by paramiko
-        path = os.path.join(os.path.dirname(__file__), "fixtures", "misc", "test_dsa.key")
-
-        with open(path) as fp:
-            private_key = fp.read()
-
-        pkey = client._get_pkey_object(key=private_key)
-        self.assertTrue(pkey)
-        self.assertTrue(isinstance(pkey, paramiko.DSSKey))
+        # Removed
 
         # 3. ECDSA key type with header which is not supported by paramiko
         path = os.path.join(os.path.dirname(__file__), "fixtures", "misc", "test_ecdsa.key")