|
11 | 11 |
|
12 | 12 | from cryptography import x509
|
13 | 13 | from cryptography.hazmat.primitives.asymmetric import dsa, rsa
|
14 |
| -from cryptography.utils import deprecated |
15 | 14 |
|
16 | 15 | from OpenSSL._util import (
|
17 | 16 | ffi as _ffi,
|
@@ -367,13 +366,6 @@ def bits(self):
|
367 | 366 | return _lib.EVP_PKEY_bits(self._pkey)
|
368 | 367 |
|
369 | 368 |
|
370 |
| -PKeyType = deprecated( |
371 |
| - PKey, __name__, |
372 |
| - "PKeyType has been deprecated, use PKey instead", |
373 |
| - DeprecationWarning |
374 |
| -) |
375 |
| - |
376 |
| - |
377 | 369 | class _EllipticCurve(object):
|
378 | 370 | """
|
379 | 371 | A representation of a supported elliptic curve.
|
@@ -706,13 +698,6 @@ def get_components(self):
|
706 | 698 | return result
|
707 | 699 |
|
708 | 700 |
|
709 |
| -X509NameType = deprecated( |
710 |
| - X509Name, __name__, |
711 |
| - "X509NameType has been deprecated, use X509Name instead", |
712 |
| - DeprecationWarning |
713 |
| -) |
714 |
| - |
715 |
| - |
716 | 701 | class X509Extension(object):
|
717 | 702 | """
|
718 | 703 | An X.509 v3 certificate extension.
|
@@ -864,13 +849,6 @@ def get_data(self):
|
864 | 849 | return _ffi.buffer(char_result, result_length)[:]
|
865 | 850 |
|
866 | 851 |
|
867 |
| -X509ExtensionType = deprecated( |
868 |
| - X509Extension, __name__, |
869 |
| - "X509ExtensionType has been deprecated, use X509Extension instead", |
870 |
| - DeprecationWarning |
871 |
| -) |
872 |
| - |
873 |
| - |
874 | 852 | class X509Req(object):
|
875 | 853 | """
|
876 | 854 | An X.509 certificate signing requests.
|
@@ -1070,13 +1048,6 @@ def verify(self, pkey):
|
1070 | 1048 | return result
|
1071 | 1049 |
|
1072 | 1050 |
|
1073 |
| -X509ReqType = deprecated( |
1074 |
| - X509Req, __name__, |
1075 |
| - "X509ReqType has been deprecated, use X509Req instead", |
1076 |
| - DeprecationWarning |
1077 |
| -) |
1078 |
| - |
1079 |
| - |
1080 | 1051 | class X509(object):
|
1081 | 1052 | """
|
1082 | 1053 | An X.509 certificate.
|
@@ -1543,13 +1514,6 @@ def get_extension(self, index):
|
1543 | 1514 | return ext
|
1544 | 1515 |
|
1545 | 1516 |
|
1546 |
| -X509Type = deprecated( |
1547 |
| - X509, __name__, |
1548 |
| - "X509Type has been deprecated, use X509 instead", |
1549 |
| - DeprecationWarning |
1550 |
| -) |
1551 |
| - |
1552 |
| - |
1553 | 1517 | class X509StoreFlags(object):
|
1554 | 1518 | """
|
1555 | 1519 | Flags for X509 verification, used to change the behavior of
|
@@ -1684,13 +1648,6 @@ def set_time(self, vfy_time):
|
1684 | 1648 | _openssl_assert(_lib.X509_STORE_set1_param(self._store, param) != 0)
|
1685 | 1649 |
|
1686 | 1650 |
|
1687 |
| -X509StoreType = deprecated( |
1688 |
| - X509Store, __name__, |
1689 |
| - "X509StoreType has been deprecated, use X509Store instead", |
1690 |
| - DeprecationWarning |
1691 |
| -) |
1692 |
| - |
1693 |
| - |
1694 | 1651 | class X509StoreContextError(Exception):
|
1695 | 1652 | """
|
1696 | 1653 | An exception raised when an error occurred while verifying a certificate
|
@@ -2338,13 +2295,6 @@ def export(self, cert, key, type=FILETYPE_PEM, days=100,
|
2338 | 2295 | return dump_crl(type, self)
|
2339 | 2296 |
|
2340 | 2297 |
|
2341 |
| -CRLType = deprecated( |
2342 |
| - CRL, __name__, |
2343 |
| - "CRLType has been deprecated, use CRL instead", |
2344 |
| - DeprecationWarning |
2345 |
| -) |
2346 |
| - |
2347 |
| - |
2348 | 2298 | class PKCS7(object):
|
2349 | 2299 | def type_is_signed(self):
|
2350 | 2300 | """
|
@@ -2389,13 +2339,6 @@ def get_type_name(self):
|
2389 | 2339 | return _ffi.string(string_type)
|
2390 | 2340 |
|
2391 | 2341 |
|
2392 |
| -PKCS7Type = deprecated( |
2393 |
| - PKCS7, __name__, |
2394 |
| - "PKCS7Type has been deprecated, use PKCS7 instead", |
2395 |
| - DeprecationWarning |
2396 |
| -) |
2397 |
| - |
2398 |
| - |
2399 | 2342 | class PKCS12(object):
|
2400 | 2343 | """
|
2401 | 2344 | A PKCS #12 archive.
|
@@ -2570,13 +2513,6 @@ def export(self, passphrase=None, iter=2048, maciter=1):
|
2570 | 2513 | return _bio_to_string(bio)
|
2571 | 2514 |
|
2572 | 2515 |
|
2573 |
| -PKCS12Type = deprecated( |
2574 |
| - PKCS12, __name__, |
2575 |
| - "PKCS12Type has been deprecated, use PKCS12 instead", |
2576 |
| - DeprecationWarning |
2577 |
| -) |
2578 |
| - |
2579 |
| - |
2580 | 2516 | class NetscapeSPKI(object):
|
2581 | 2517 | """
|
2582 | 2518 | A Netscape SPKI object.
|
@@ -2667,13 +2603,6 @@ def set_pubkey(self, pkey):
|
2667 | 2603 | _openssl_assert(set_result == 1)
|
2668 | 2604 |
|
2669 | 2605 |
|
2670 |
| -NetscapeSPKIType = deprecated( |
2671 |
| - NetscapeSPKI, __name__, |
2672 |
| - "NetscapeSPKIType has been deprecated, use NetscapeSPKI instead", |
2673 |
| - DeprecationWarning |
2674 |
| -) |
2675 |
| - |
2676 |
| - |
2677 | 2606 | class _PassphraseHelper(object):
|
2678 | 2607 | def __init__(self, type, passphrase, more_args=False, truncate=False):
|
2679 | 2608 | if type != FILETYPE_PEM and passphrase is not None:
|
|
0 commit comments