diff options
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | M2Crypto/PGP/PublicKey.py | 3 | ||||
-rw-r--r-- | M2Crypto/PGP/PublicKeyRing.py | 3 | ||||
-rw-r--r-- | M2Crypto/PGP/RSA.py | 3 | ||||
-rw-r--r-- | M2Crypto/PGP/packet.py | 3 |
5 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,7 @@ 0.20 ---- +- Deprecated M2Crypto.PGP subpackage since nobody seems to be using it nor + is it being maintained - Added fedora_setup.sh to help work around differences on Fedora Core -based distributions (RedHat, CentOS, ...); thanks to Miloslav Trmac - Added X509.load_request_bio and load_request_string, by Hartmut Goebel and diff --git a/M2Crypto/PGP/PublicKey.py b/M2Crypto/PGP/PublicKey.py index ad441d7..f892ade 100644 --- a/M2Crypto/PGP/PublicKey.py +++ b/M2Crypto/PGP/PublicKey.py @@ -8,6 +8,9 @@ import RSA class PublicKey: def __init__(self, pubkey_pkt): + import warnings + warnings.warn('Deprecated. No maintainer for PGP. If you use this, please inform M2Crypto maintainer.', DeprecationWarning) + self._pubkey_pkt = pubkey_pkt self._pubkey = RSA.new_pub_key((pubkey_pkt._e, pubkey_pkt._n)) self._userid = {} diff --git a/M2Crypto/PGP/PublicKeyRing.py b/M2Crypto/PGP/PublicKeyRing.py index a9904d7..a8447b3 100644 --- a/M2Crypto/PGP/PublicKeyRing.py +++ b/M2Crypto/PGP/PublicKeyRing.py @@ -8,6 +8,9 @@ from PublicKey import * class PublicKeyRing: def __init__(self, keyring): + import warnings + warnings.warn('Deprecated. No maintainer for PGP. If you use this, please inform M2Crypto maintainer.', DeprecationWarning) + self._keyring = keyring self._userid = {} self._keyid = {} diff --git a/M2Crypto/PGP/RSA.py b/M2Crypto/PGP/RSA.py index 27872ae..153193d 100644 --- a/M2Crypto/PGP/RSA.py +++ b/M2Crypto/PGP/RSA.py @@ -26,6 +26,9 @@ def new_pub_key((e, n)): 'n' is the RSA composite of primes; it is a string in OpenSSL's binary format, i.e., a number of bytes in big-endian. """ + import warnings + warnings.warn('Deprecated. No maintainer for PGP. If you use this, please inform M2Crypto maintainer.', DeprecationWarning) + rsa = m2.rsa_new() m2.rsa_set_e_bin(rsa, e) m2.rsa_set_n_bin(rsa, n) diff --git a/M2Crypto/PGP/packet.py b/M2Crypto/PGP/packet.py index 9caf7c9..d662c84 100644 --- a/M2Crypto/PGP/packet.py +++ b/M2Crypto/PGP/packet.py @@ -35,6 +35,9 @@ _OK_PKC = ('\001',) class packet: def __init__(self, ctb, body=None): + import warnings + warnings.warn('Deprecated. No maintainer for PGP. If you use this, please inform M2Crypto maintainer.', DeprecationWarning) + self.ctb = ctb if body is not None: self.body = StringIO(body) |