In my game I need some digest and cipher algorithms (MD5 / SHA1 / RSA / AES…), I cannot found related information in API references, so I decide to write a native extension to port lua openssl to Defold.
But when I tried to build the extension with prebuilt openssl static libraries, the build server failed to link it with following errors.
It seems Defold already included parts of openssl implementations in libdlib.a and caused the duplicate symbols.
I know there is a post in the forum about a similar issue. In this post, @sergey.lerg suggested to remove libcrypto.a from the extension or remove the duplicate symbols, but I don’t think this is a decent solution because there might be some binary compatibility issues between various major openssl releases.
So my questions are:
- Does Defold include parts or whole openssl libraries? If it does, which version used?
- Is possible Defold to open the digest and cipher algorithms to the extension developers (even just header files would be great help)? Since Defold has builtin https support, I suppose you already have these implemented.
- If these algorithms could be provide in lua, it would be wonderful for game developers and flexile for you.
Thanks,
Joshua