aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-03-14 17:55:07 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-03-14 17:55:07 -0400
commit4c9fa34f30bfa25762e6387133d7846d01572a0b (patch)
treebc22fb207cde5a702f1ac07186ea19bcf6c4d163 /src
parent0354694e9cc25d309a5bcb8c6c032fd1f28d9e4b (diff)
downloadcryptography-4c9fa34f30bfa25762e6387133d7846d01572a0b.tar.gz
cryptography-4c9fa34f30bfa25762e6387133d7846d01572a0b.tar.bz2
cryptography-4c9fa34f30bfa25762e6387133d7846d01572a0b.zip
Don't trigger any deprecation warnings on import
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/backends/openssl/dsa.py2
-rw-r--r--src/cryptography/hazmat/primitives/interfaces/__init__.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/dsa.py b/src/cryptography/hazmat/backends/openssl/dsa.py
index 43c077dd..5d7ca38c 100644
--- a/src/cryptography/hazmat/backends/openssl/dsa.py
+++ b/src/cryptography/hazmat/backends/openssl/dsa.py
@@ -173,7 +173,7 @@ class _DSAPrivateKey(object):
)
-@utils.register_interface(dsa.DSAPublicKeyWithNumbers)
+@utils.register_interface(dsa.DSAPublicKeyWithSerialization)
class _DSAPublicKey(object):
def __init__(self, backend, dsa_cdata):
self._backend = backend
diff --git a/src/cryptography/hazmat/primitives/interfaces/__init__.py b/src/cryptography/hazmat/primitives/interfaces/__init__.py
index 1e7b1215..c980e5a5 100644
--- a/src/cryptography/hazmat/primitives/interfaces/__init__.py
+++ b/src/cryptography/hazmat/primitives/interfaces/__init__.py
@@ -141,7 +141,7 @@ EllipticCurvePrivateKey = utils.deprecated(
EllipticCurvePrivateKeyWithNumbers = utils.deprecated(
- ec.EllipticCurvePrivateKeyWithNumbers,
+ ec.EllipticCurvePrivateKeyWithSerialization,
__name__,
(
"The EllipticCurvePrivateKeyWithNumbers interface has moved to the "
@@ -163,7 +163,7 @@ EllipticCurvePublicKey = utils.deprecated(
EllipticCurvePublicKeyWithNumbers = utils.deprecated(
- ec.EllipticCurvePublicKeyWithNumbers,
+ ec.EllipticCurvePublicKeyWithSerialization,
__name__,
(
"The EllipticCurvePublicKeyWithNumbers interface has moved to the "
@@ -215,7 +215,7 @@ DSAPrivateKey = utils.deprecated(
)
DSAPrivateKeyWithNumbers = utils.deprecated(
- dsa.DSAPrivateKeyWithNumbers,
+ dsa.DSAPrivateKeyWithSerialization,
__name__,
(
"The DSAPrivateKeyWithNumbers interface has moved to the "
@@ -235,7 +235,7 @@ DSAPublicKey = utils.deprecated(
)
DSAPublicKeyWithNumbers = utils.deprecated(
- dsa.DSAPublicKeyWithNumbers,
+ dsa.DSAPublicKeyWithSerialization,
__name__,
(
"The DSAPublicKeyWithNumbers interface has moved to the "
@@ -310,7 +310,7 @@ RSAPublicKey = utils.deprecated(
)
RSAPublicKeyWithNumbers = utils.deprecated(
- rsa.RSAPublicKeyWithNumbers,
+ rsa.RSAPublicKeyWithSerialization,
__name__,
(
"The RSAPublicKeyWithNumbers interface has moved to the "