diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-05 11:22:14 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-07-05 11:22:14 -0400 |
commit | 4de08a2e1e85b7e16b78074c20cee840d315d637 (patch) | |
tree | e83c0b18fee12e5e3fbb286c31c4cee98cda66dd | |
parent | ba2abb102152a4b57f7661481c8bc53d473cbf09 (diff) | |
download | cryptography-4de08a2e1e85b7e16b78074c20cee840d315d637.tar.gz cryptography-4de08a2e1e85b7e16b78074c20cee840d315d637.tar.bz2 cryptography-4de08a2e1e85b7e16b78074c20cee840d315d637.zip |
this needs to be freed as well
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/backend.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/backend.py b/src/cryptography/hazmat/backends/openssl/backend.py index 52b5abcf..767605c0 100644 --- a/src/cryptography/hazmat/backends/openssl/backend.py +++ b/src/cryptography/hazmat/backends/openssl/backend.py @@ -153,6 +153,7 @@ def _encode_subject_alt_name(backend, san): gn.type = backend._lib.GEN_DNS ia5 = backend._lib.ASN1_IA5STRING_new() assert ia5 != backend._ffi.NULL + # TODO: GC? value = idna.encode(alt_name.value) res = backend._lib.ASN1_STRING_set(ia5, value, len(value)) assert res == 1 |