diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-12 12:44:24 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-03-12 12:44:24 -0400 |
commit | 83457cf270fef19446d7bead3b0eb86f6d04c4f5 (patch) | |
tree | a707488be039cfdf8b2b384e153b971688f0d49a /src | |
parent | ab973321f6012626e63420603c34e2975f42f237 (diff) | |
download | cryptography-83457cf270fef19446d7bead3b0eb86f6d04c4f5.tar.gz cryptography-83457cf270fef19446d7bead3b0eb86f6d04c4f5.tar.bz2 cryptography-83457cf270fef19446d7bead3b0eb86f6d04c4f5.zip |
move NUMERICSTRING certificate test to test_openssl & make it more specific
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/decode_asn1.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/decode_asn1.py b/src/cryptography/hazmat/backends/openssl/decode_asn1.py index 67586c22..26f56d12 100644 --- a/src/cryptography/hazmat/backends/openssl/decode_asn1.py +++ b/src/cryptography/hazmat/backends/openssl/decode_asn1.py @@ -710,7 +710,7 @@ def _asn1_string_to_utf8(backend, asn1_string): buf = backend._ffi.new("unsigned char **") res = backend._lib.ASN1_STRING_to_UTF8(buf, asn1_string) if res == -1: - raise TypeError( + raise ValueError( "Unsupported ASN1 string type. Type: {0}".format(asn1_string.type) ) |