From f1c3315a621eb895a9b6d52901cd8946413f53f6 Mon Sep 17 00:00:00 2001 From: Andre Caron Date: Mon, 18 May 2015 12:25:13 -0400 Subject: Removes PEM text prelude for CSRs. --- src/cryptography/hazmat/backends/openssl/x509.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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 ) -- cgit v1.2.3