diff options
author | Erik Trauschke <erik.trauschke@gmail.com> | 2015-10-21 08:04:55 -0700 |
---|---|---|
committer | Erik Trauschke <erik.trauschke@gmail.com> | 2015-10-21 08:04:55 -0700 |
commit | 32bbfe0f27c284d6c268f2998e64f62083465faf (patch) | |
tree | 34cee6777d05273f749a628367da1acce2714a28 /src | |
parent | 12121fc2fdf647cf205f0eec81f9fd0aee89b32b (diff) | |
download | cryptography-32bbfe0f27c284d6c268f2998e64f62083465faf.tar.gz cryptography-32bbfe0f27c284d6c268f2998e64f62083465faf.tar.bz2 cryptography-32bbfe0f27c284d6c268f2998e64f62083465faf.zip |
remove convenience functions for revoked extensions
fix docs regarding CRL PEM format
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/x509.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/x509.py b/src/cryptography/hazmat/backends/openssl/x509.py index 1c0f87fd..2790ec7d 100644 --- a/src/cryptography/hazmat/backends/openssl/x509.py +++ b/src/cryptography/hazmat/backends/openssl/x509.py @@ -744,36 +744,6 @@ class _RevokedCertificate(object): self._backend, self._x509_revoked ) - def get_reason(self): - """ - Returns the CRLReason extension if it exists. - """ - try: - return self.extensions.get_extension_for_oid( - x509.OID_CRL_REASON).value - except x509.ExtensionNotFound: - return None - - def get_invalidity_date(self): - """ - Returns the InvalidityDate extension if it exists. - """ - try: - return self.extensions.get_extension_for_oid( - x509.OID_INVALIDITY_DATE).value - except x509.ExtensionNotFound: - return None - - def get_certificate_issuer(self): - """ - Returns the CertificateIssuer extension if it exists. - """ - try: - return self.extensions.get_extension_for_oid( - x509.OID_CERTIFICATE_ISSUER).value - except x509.ExtensionNotFound: - return None - @utils.register_interface(x509.CertificateRevocationList) class _CertificateRevocationList(object): |