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")
