OpenSSL problem again

Sorry, i mean create a new topic.

How To Use From V3 To V2 …???

@MehulDodiya30 you can refer to this issue

Hi Everyone,

Please help me!
Many thanks!

Info: Eclipse, Cocos2dx 3.3, android-ndk-r10d

I copy/paste “curl” folder (v3 download: https://github.com/cocos2d/cocos2d-x-3rd-party-libs-bin)

I updated OpenSSL to 1.0.2h by brew

Phans-MacBook-Pro-2:curl-7.50.1 phanbaminh$ openssl version
OpenSSL 1.0.2h 3 May 2016

But I still have old “OpenSSL”

Phans-MacBook-Pro-2:curl-7.50.1 phanbaminh$ unzip -p ~/Desktop/DOWNLOAD/ANDROID/APKS/StickzombiesVsStickemn\ -\ 2016.08.23.apk | strings | grep “OpenSSL”


@zhangxm: Hi, I can not reply now, don’t know why

@kidbaw there is libssl.a in CURL folder, why you update CURL by brew? The CURL downloaded by brew i used for mac, not for android.

1 Like

@kidbaw

The system flagged you as a spammer and blocked your further replies. I cleared that flag this morning when I saw it and realized your posts were genuine. I have now unblocked you as well. I apologize for the inconvenience.

@slackmoehrle: thank you very much!

@zhangxm:
I copy/pase “curl” folder from “https://github.com/cocos2d/cocos2d-x-3rd-party-libs-bin” to cocos2d-x setup folder (not cocos2d-x lib folder)

Build -> ok
Export -> ok
Check -> failed


Phans-MacBook-Pro-2:~ phanbaminh$ unzip -p ~/Desktop/DOWNLOAD/ANDROID/APKS/StickzombiesVsStickemn\ -\ 2016.08.23.apk | strings | grep “OpenSSL”
GmsCore_OpenSSL
OpenSSLDie
DSA_OpenSSL
ECDSA_OpenSSL
DH_OpenSSL
ECDH_OpenSSL
OpenSSL_add_all_ciphers
OpenSSL_add_all_digests
UI_OpenSSL
OpenSSL 1.0.1j 15 Oct 2014
%s(%d): OpenSSL internal error, assertion failed: %s
OpenSSL HMAC method
OpenSSL EC algorithm
OpenSSL RSA method
OpenSSL DSA method
OpenSSL ECDSA method
OpenSSL DH Method
OpenSSL PKCS#3 DH method
OpenSSL ECDH method
You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html
OpenSSL default
OpenSSL default user interface
OpenSSL CMAC method
could not parse PKCS12 file, check password, OpenSSL error %s
OpenSSL/%lx.%lx.%lx%s
SSLv2 part of OpenSSL 1.0.1j 15 Oct 2014
SSLv3 part of OpenSSL 1.0.1j 15 Oct 2014
TLSv1 part of OpenSSL 1.0.1j 15 Oct 2014
nopqrsDTLSv1 part of OpenSSL 1.0.1j 15 Oct 2014
MD4 part of OpenSSL 1.0.1j 15 Oct 2014
MD5 part of OpenSSL 1.0.1j 15 Oct 2014
SHA part of OpenSSL 1.0.1j 15 Oct 2014
SHA1 part of OpenSSL 1.0.1j 15 Oct 2014
SHA-256 part of OpenSSL 1.0.1j 15 Oct 2014
DlSHA-512 part of OpenSSL 1.0.1j 15 Oct 2014
RIPE-MD160 part of OpenSSL 1.0.1j 15 Oct 2014
DES part of OpenSSL 1.0.1j 15 Oct 2014
libdes part of OpenSSL 1.0.1j 15 Oct 2014
!"#$% !"#$%&’()*+,-./0123456789:;<=>?@ABCD./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzAES part of OpenSSL 1.0.1j 15 Oct 2014
cU!
}RC2 part of OpenSSL 1.0.1j 15 Oct 2014
RC4 part of OpenSSL 1.0.1j 15 Oct 2014

I am done now,


Phans-MacBook-Pro-2:cocos2d-x-3.3 phanbaminh$ unzip -p ~/Desktop/DOWNLOAD/ANDROID/APKS/StickzombiesVsStickmen_ANDROID_2016.08.25.apk | strings | grep “OpenSSL”
GmsCore_OpenSSL
OpenSSLDie
DSA_OpenSSL
ECDSA_OpenSSL
DH_OpenSSL
ECDH_OpenSSL
OpenSSL_add_all_ciphers
OpenSSL_add_all_digests
UI_OpenSSL
OpenSSL 1.0.2g 1 Mar 2016

Thanks all!

just to clarify for myself, this openSSL issue exists in all version of cocos2d-x prior to 3.12? Is it fixed in 3.12?

@jgdev it is fixed since v3.11.1, yep, it is fixed in 3.12.

@zhangxm please help.

up-to-date cocos2d-x openssl code working in minSdkVersion 21?

  1. I try copy cocos2d-x openssl code -> my project
  2. ndk version -> up-to-date
  3. build and test
  4. crash at android version 4.4.2
  5. add line “APP_PLATFORM := android-19” (at Application.mk) not working…
  6. edit to android-21 -> working .

I want support android version 4.

help me please …

@ysjang what’s the crash log? You can build CURL yourself to have a try: https://github.com/cocos2d/cocos2d-x-3rd-party-libs-src.

I had my app (developed using cocos2d-x-2.2.6) rejected from the Google Play Store yesterday, because of the SSL and Libpng problems.

Thanks to this post I fixed everything but I don’t really get why the zip file downloadable from the website is not including those important fixes.

I know that’s an old version but someone may still need it, since it is an option on the website wouldn’t be better to update the package?