diff options
author | Andre Caron <andre.l.caron@gmail.com> | 2015-05-18 12:25:13 -0400 |
---|---|---|
committer | Andre Caron <andre.l.caron@gmail.com> | 2015-05-18 12:25:13 -0400 |
commit | f1c3315a621eb895a9b6d52901cd8946413f53f6 (patch) | |
tree | 459c0c01b97135be8cc83d01890297dec67637f6 | |
parent | 476c5df3f12967b397a3e02e303db774cfa95915 (diff) | |
download | cryptography-f1c3315a621eb895a9b6d52901cd8946413f53f6.tar.gz cryptography-f1c3315a621eb895a9b6d52901cd8946413f53f6.tar.bz2 cryptography-f1c3315a621eb895a9b6d52901cd8946413f53f6.zip |
Removes PEM text prelude for CSRs.
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/x509.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/x509.py b/src/cryptography/hazmat/backends/openssl/x509.py index 67d0d51a..72041366 100644 --- a/src/cryptography/hazmat/backends/openssl/x509.py +++ b/src/cryptography/hazmat/backends/openssl/x509.py @@ -694,11 +694,8 @@ class _CertificateSigningRequest(object): if not isinstance(encoding, serialization.Encoding): raise TypeError("encoding must be an item from the Encoding enum") - # TODO: make text prelude optional. bio = self._backend._create_mem_bio() if encoding is serialization.Encoding.PEM: - res = self._backend._lib.X509_REQ_print(bio, self._x509_req) - assert res == 1 res = self._backend._lib.PEM_write_bio_X509_REQ( bio, self._x509_req ) |