Closed travankor closed 4 years ago
I would gladly accept PR to add better libressl support.
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /home/hasufell/.cabal/store/ghc-8.6.5/HsOpenSSL-0.11.4.17-bcb2b4198ee164b0bce7ed0bfecb73b2a0e1271e1a7709072d46021e32addced/lib/libHSHsOpenSSL-0.11.4.17-bcb2b4198ee164b0bce7ed0bfecb73b2a0e1271e1a7709072d46021e32addced.a(Internal.o): in function `cfQ7_info':
(.text+0x3d31): warning: EVP_CipherFinal is often misused, please use EVP_CipherFinal_ex and EVP_CIPHER_CTX_cleanup
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /home/hasufell/.cabal/store/ghc-8.6.5/HsOpenSSL-0.11.4.17-bcb2b4198ee164b0bce7ed0bfecb73b2a0e1271e1a7709072d46021e32addced/lib/libHSHsOpenSSL-0.11.4.17-bcb2b4198ee164b0bce7ed0bfecb73b2a0e1271e1a7709072d46021e32addced.a(HsOpenSSL.o): in function `HsOpenSSL_M_ASN1_INTEGER_new':
HsOpenSSL.c:(.text+0x397): undefined reference to `M_ASN1_INTEGER_new'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /home/hasufell/.cabal/store/ghc-8.6.5/HsOpenSSL-0.11.4.17-bcb2b4198ee164b0bce7ed0bfecb73b2a0e1271e1a7709072d46021e32addced/lib/libHSHsOpenSSL-0.11.4.17-bcb2b4198ee164b0bce7ed0bfecb73b2a0e1271e1a7709072d46021e32addced.a(HsOpenSSL.o): in function `HsOpenSSL_M_ASN1_TIME_new':
HsOpenSSL.c:(.text+0x3c7): undefined reference to `M_ASN1_TIME_new'
/usr/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ld: /home/hasufell/.cabal/store/ghc-8.6.5/HsOpenSSL-0.11.4.17-bcb2b4198ee164b0bce7ed0bfecb73b2a0e1271e1a7709072d46021e32addced/lib/libHSHsOpenSSL-0.11.4.17-bcb2b4198ee164b0bce7ed0bfecb73b2a0e1271e1a7709072d46021e32addced.a(HsOpenSSL.o): in function `HsOpenSSL_M_ASN1_TIME_free':
HsOpenSSL.c:(.text+0x3e3): undefined reference to `M_ASN1_TIME_free'
collect2: error: ld returned 1 exit status
Thank you. Merged and released in HsOpenSSL-0.11.4.18
.
Testing HsOpenSSL with libressl 2.9.2 headers, reveals that
M_ASN1_TIME_NEW
symbol is missing. There is probably more stuff missing since libressl is not 100% compatible with openssl, but I don't have the time to delve into this right now.It would be nice if Haskell had full libressl support, since both projects focus on creating secure and correct code.