sigh
diff --git a/src/cryptography/hazmat/backends/openssl/x509.py b/src/cryptography/hazmat/backends/openssl/x509.py
index 1de3f4d..17dd098 100644
--- a/src/cryptography/hazmat/backends/openssl/x509.py
+++ b/src/cryptography/hazmat/backends/openssl/x509.py
@@ -99,5 +99,5 @@
         bio = self._backend._create_mem_bio()
         res = self._backend._lib.ASN1_TIME_print(bio, asn1_time)
         assert res == 1
-        time = self._backend._read_mem_bio(bio)
+        time = self._backend._read_mem_bio(bio).decode("ascii")
         return datetime.datetime.strptime(time, "%b %d %H:%M:%S %Y GMT")
diff --git a/src/cryptography/hazmat/bindings/openssl/asn1.py b/src/cryptography/hazmat/bindings/openssl/asn1.py
index 7fe01fb..5b1a56f 100644
--- a/src/cryptography/hazmat/bindings/openssl/asn1.py
+++ b/src/cryptography/hazmat/bindings/openssl/asn1.py
@@ -120,7 +120,7 @@
 
 /* These aren't macros these arguments are all const X on openssl > 1.0.x */
 
-int ASN1_TIME_print(BIO *, const ASN1_TIME *);
+int ASN1_TIME_print(BIO *, ASN1_TIME *);
 int ASN1_STRING_length(ASN1_STRING *);
 ASN1_STRING *ASN1_STRING_dup(ASN1_STRING *);
 int ASN1_STRING_cmp(ASN1_STRING *, ASN1_STRING *);