aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-04-22 09:22:56 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-04-22 13:48:39 -0500
commit0a621bf5da576d7aab394e5bdc342e2e8b1cbaa2 (patch)
tree24b07b6643387f3a82ed5733ab8155e0612978ab /src
parentbed07357a90237ee92cedba788066f87a63e34b6 (diff)
downloadcryptography-0a621bf5da576d7aab394e5bdc342e2e8b1cbaa2.tar.gz
cryptography-0a621bf5da576d7aab394e5bdc342e2e8b1cbaa2.tar.bz2
cryptography-0a621bf5da576d7aab394e5bdc342e2e8b1cbaa2.zip
return only an int for unsupported general name type, update docs
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/backends/openssl/x509.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/x509.py b/src/cryptography/hazmat/backends/openssl/x509.py
index 07e79fed..cc4a92a6 100644
--- a/src/cryptography/hazmat/backends/openssl/x509.py
+++ b/src/cryptography/hazmat/backends/openssl/x509.py
@@ -69,7 +69,7 @@ def _build_general_name(backend, gn):
"{0} is not a supported type".format(
x509._GENERAL_NAMES.get(gn.type, gn.type)
),
- x509._GENERAL_NAMES.get(gn.type, gn.type)
+ gn.type
)