Closed
Description
In asn1.py
, cryptography defines time_t
to be int...
:
https://github.com/pyca/cryptography/blob/main/src/_cffi_src/openssl/asn1.py#L12
I'm not 100% sure what int...
means, since the documentation of cffi doesn't directly suggest that the parser would accept this and I haven't looked at the source code. But if it's any of void *
, int *
, or int
these are all 32 bits in Emscripten, but time_t
is 64 bits.
Applying the following patch gets it building again, but I'm not sure how we can upstream this:
--- a/src/_cffi_src/openssl/asn1.py
+++ b/src/_cffi_src/openssl/asn1.py
@@ -9,7 +9,7 @@ INCLUDES = """
"""
TYPES = """
-typedef int... time_t;
+typedef long long time_t;
typedef ... ASN1_INTEGER;