aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cryptography/hazmat/backends/openssl/x509.py3
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
)