[paramiko] Update to 4.0.* (#14527)

Closes: #14524
This commit is contained in:
Semyon Moroz
2025-08-05 11:38:21 +00:00
committed by GitHub
parent 084742b431
commit aeb9c4cb39
5 changed files with 7 additions and 87 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
version = "3.5.*"
version = "4.0.*"
upstream_repository = "https://github.com/paramiko/paramiko"
# Requires a version of cryptography where cryptography.hazmat.primitives.ciphers.Cipher is generic
requires = ["cryptography>=37.0.0"]
+6 -47
View File
@@ -1,3 +1,5 @@
from typing import Final
from paramiko import util as util
from paramiko.agent import Agent as Agent, AgentKey as AgentKey
from paramiko.channel import Channel as Channel, ChannelFile as ChannelFile
@@ -10,7 +12,6 @@ from paramiko.client import (
)
from paramiko.common import io_sleep as io_sleep
from paramiko.config import SSHConfig as SSHConfig, SSHConfigDict as SSHConfigDict
from paramiko.dsskey import DSSKey as DSSKey
from paramiko.ecdsakey import ECDSAKey as ECDSAKey
from paramiko.ed25519key import Ed25519Key as Ed25519Key
from paramiko.file import BufferedFile as BufferedFile
@@ -40,49 +41,7 @@ from paramiko.ssh_exception import (
)
from paramiko.transport import SecurityOptions as SecurityOptions, Transport as Transport
__author__: str
__license__: str
__all__ = [
"Agent",
"AgentKey",
"AuthenticationException",
"AutoAddPolicy",
"BadAuthenticationType",
"BadHostKeyException",
"BufferedFile",
"Channel",
"ChannelException",
"ConfigParseError",
"CouldNotCanonicalize",
"DSSKey",
"ECDSAKey",
"Ed25519Key",
"HostKeys",
"Message",
"MissingHostKeyPolicy",
"PKey",
"PasswordRequiredException",
"ProxyCommand",
"ProxyCommandFailure",
"RSAKey",
"RejectPolicy",
"SFTP",
"SFTPAttributes",
"SFTPClient",
"SFTPError",
"SFTPFile",
"SFTPHandle",
"SFTPServer",
"SFTPServerInterface",
"SSHClient",
"SSHConfig",
"SSHConfigDict",
"SSHException",
"SecurityOptions",
"ServerInterface",
"SubsystemHandler",
"Transport",
"WarningPolicy",
"io_sleep",
"util",
]
__version__: Final[str]
__author__: Final[str]
__license__: Final[str]
key_classes: list[type[PKey]]
-2
View File
@@ -1,2 +0,0 @@
__version_info__: tuple[int, int, int]
__version__: str
-35
View File
@@ -1,35 +0,0 @@
from _typeshed import FileDescriptorOrPath, ReadableBuffer
from collections.abc import Callable
from typing import IO
from paramiko.message import Message
from paramiko.pkey import PKey
class DSSKey(PKey):
p: int | None
q: int | None
g: int | None
y: int | None
x: int | None
public_blob: None
size: int
def __init__(
self,
msg: Message | None = None,
data: ReadableBuffer | None = None,
filename: FileDescriptorOrPath | None = None,
password: str | None = None,
vals: tuple[int, int, int, int] | None = None,
file_obj: IO[str] | None = None,
) -> None: ...
def asbytes(self) -> bytes: ...
def __hash__(self) -> int: ...
def get_name(self) -> str: ...
def get_bits(self) -> int: ...
def can_sign(self) -> bool: ...
def sign_ssh_data(self, data: bytes, algorithm: str | None = None) -> Message: ...
def verify_ssh_sig(self, data: bytes, msg: Message) -> bool: ...
def write_private_key_file(self, filename: FileDescriptorOrPath, password: str | None = None) -> None: ...
def write_private_key(self, file_obj: IO[str], password: str | None = None) -> None: ...
@staticmethod
def generate(bits: int = 1024, progress_func: Callable[..., object] | None = None) -> DSSKey: ...
-2
View File
@@ -25,8 +25,6 @@ class _SSH_GSSAPI_OLD(_SSH_GSSAuth):
def credentials_delegated(self) -> bool: ...
def save_client_creds(self, client_token: str) -> None: ...
_SSH_GSSAPI = _SSH_GSSAPI_OLD
class _SSH_GSSAPI_NEW(_SSH_GSSAuth):
def __init__(self, auth_method: str, gss_deleg_creds: bool) -> None: ...
def ssh_init_sec_context(