OpenSSL problem again

Hello~ Everyone~!

We had to modify the game to resolve the OpenSSL issue as follows.

However, some users of the Wi-Fi environment, the game does not work after applying this update.
My game can’t connect network(internet) in Wi-Fi environment with specify router.
So, They can’t play my game :frowning:

Router type : C2000T CenturyLink, Netgear n300, N300RM WiFi Router Modem

As a result, I have to rollback this update.
(They can play my game after rollback this update)

Anybody know about this problem?

My Cocos2d-x Version : 2.2.6

@hihkhihk Sorry, i have not idea. Is there any error log?

Thanks for your reply~!

Actually, we can’t reproduce this issue(wifi problem) in our network environment.
We received a report that the wifi problem for users.
I don’t know why this issue occurred in this CURL library. :frowning:

Anyway, so we’ll try to below combination to resolve OpenSSL issues.

  • Current CURL(7.26.0) + without OpenSSL
    (We don’t need SSL feature)

To make above combination, as you know, I have to rebuild CURL binary.
To rebuild CURL binary, I have to do ‘configure’ before build it.

Could you tell us about the prameter of ‘configure’ in CURL?

Thanks,
HoIck Lee.

Hi
Please Help

Google has started warning users of Cocos2d-x v2.x about an issue with libpng.

https://support.google.com/faqs/answer/7011127

Has anyone else seen this / fixed it?

@nitinchauhan3046 I think you can use v3 libpng, it is 1.6.16. And please create a new thread.

How to create new thread ?

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?