cocochpie/android-openssl

Endianness of Android ARM64 / MIPS64

Opened this issue · 1 comments

I see several '-DB_ENDIAN' in the build script, especially in ARM64 and MIPS64 sections.
I doubt that it is correct since Android in obviously always little-endian.
See http://stackoverflow.com/questions/6212951/endianness-of-android-ndk

I actually ran into a practical errors with OpenSSL, getting very weird error code from a OpenSSL server about incoming connection from Android ARM64 OpenSSL client code built using this script. The issue can be backtracked to an incorrect endianness of OpenSSL.

Funny enough, I see this or similar script in a lot of repositories and I'm wondering if I'm the only person who noticed that.

I just noticed it myself.

I've made a pull request, but in the meantime you can use my fixed branch: https://github.com/paulo-raca/android-openssl/tree/master