-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lock cryptography requirement to <41
Introduced deprecation notice
- Loading branch information
1 parent
cd58114
commit 8c228ca
Showing
4 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
click | ||
cryptography | ||
cryptography<41.0.0 | ||
bcrypt | ||
enum34 | ||
PrettyTable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
_EX.NoPrivateKeyException: The certificate contains no private key | ||
_EX.NotSignedException: The certificate is not signed and cannot be exported | ||
""" | ||
import warnings | ||
from base64 import b64decode, b64encode | ||
from dataclasses import dataclass | ||
from typing import Tuple, Union | ||
|
@@ -577,9 +578,16 @@ class RsaCertificate(SSHCertificate): | |
|
||
|
||
class DsaCertificate(SSHCertificate): | ||
"""The DSA Certificate class""" | ||
"""The DSA Certificate class (DEPRECATED)""" | ||
|
||
DEFAULT_KEY_TYPE = "[email protected]" | ||
|
||
def __post_init__(self): | ||
"""Display the deprecation notice""" | ||
warnings.warn( | ||
"SSH DSA keys and certificates are deprecated and will be removed in version 0.10 of sshkey-tools", | ||
stacklevel=2, | ||
) | ||
|
||
|
||
class EcdsaCertificate(SSHCertificate): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters