cornflex 1.1.2__tar.gz → 1.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cornflex-1.1.2 → cornflex-1.1.3}/PKG-INFO +1 -1
- {cornflex-1.1.2 → cornflex-1.1.3}/cornflex/reader.py +6 -1
- {cornflex-1.1.2 → cornflex-1.1.3}/pyproject.toml +1 -1
- {cornflex-1.1.2 → cornflex-1.1.3}/.github/workflows/pr.yml +0 -0
- {cornflex-1.1.2 → cornflex-1.1.3}/.github/workflows/publish.yml +0 -0
- {cornflex-1.1.2 → cornflex-1.1.3}/.gitignore +0 -0
- {cornflex-1.1.2 → cornflex-1.1.3}/LICENSE +0 -0
- {cornflex-1.1.2 → cornflex-1.1.3}/README.md +0 -0
- {cornflex-1.1.2 → cornflex-1.1.3}/conftest.py +0 -0
- {cornflex-1.1.2 → cornflex-1.1.3}/cornflex/__init__.py +0 -0
- {cornflex-1.1.2 → cornflex-1.1.3}/tests/test_reader.py +0 -0
|
@@ -38,8 +38,13 @@ class SFTPReader:
|
|
|
38
38
|
)
|
|
39
39
|
for key_type in self.preferred_keys:
|
|
40
40
|
if key_type not in paramiko.Transport._key_info:
|
|
41
|
+
from cryptography.hazmat.primitives import hashes
|
|
41
42
|
from paramiko.rsakey import RSAKey
|
|
42
|
-
|
|
43
|
+
|
|
44
|
+
class _LegacyRSAKey(RSAKey):
|
|
45
|
+
HASHES = {**RSAKey.HASHES, "ssh-rsa": hashes.SHA1}
|
|
46
|
+
|
|
47
|
+
paramiko.Transport._key_info[key_type] = _LegacyRSAKey
|
|
43
48
|
if self.preferred_kex:
|
|
44
49
|
paramiko.Transport._preferred_kex = (
|
|
45
50
|
tuple(self.preferred_kex) + paramiko.Transport._preferred_kex
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|