Error “Could not load SSL library” on Android with TidHTTP

Ref: https://stackoverflow.com/questions/37105600/error-could-not-load-ssl-library-on-android-with-tidhttp


After many reports of my apps crashing if installed in Android 6 devices I've searched the net for some tips and the couple of needed .so compiled files, 1.02 version, added the two files to the play store deployment of my apps (assets\internal) and changed the Indy's path calling

IdOpenSSLSetLibPath(TPath.GetDocumentsPath)

in the OnCreate of my datamodule.

After those modifications of my code my Apps run perfectly on my brand new S7 with Android 6.0.1, and on all the other recent Android devices (tested using the Play Store deployment).

And now the Google warning pops up telling me that the OpsnSSL files deployed with my apps are not of the minimum required 1.02f version (or 1.01r).... and so my post in this forum.





Update: the Android binaries for OpenSSL 1.0.2g are now available in the Embarcadero Attachments forum:

https://forums.embarcadero.com/thread.jspa?threadID=211147

Then, to load OpenSSL instead of BoringSSL, follow these steps:

Add the 2 .so files to your project deployment and set them to deploy to the .\assets\internal\ folder

add the System.StartupCopy unit as the first unit in your DPR's uses clause.

call IdOpenSSLSetLibPath(TPath.GetDocumentsPath) at app startup.


Update: the binaries have now been posted on Indy's Fulgan mirror:

http://indy.fulgan.com/SSL/

Comments