OpenSSL problem again

@zhangxm, here’s the output when check the OpenSSL:

2016-04-08 15:09:50.250 xcodebuild[1247:65494] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path ‘~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/App.io Xcode Plugin.xcplugin’ not present in DVTPlugInCompatibilityUUIDs
GmsCore_OpenSSL
OpenSSLDie
DH_OpenSSL
DSA_OpenSSL
ECDH_OpenSSL
ECDSA_OpenSSL
OpenSSL_add_all_ciphers
OpenSSL_add_all_digests
UI_OpenSSL
could not parse PKCS12 file, check password, OpenSSL error %s
OpenSSL/%lx.%lx.%lx%s
OpenSSL CMAC method
OpenSSL default
%s(%d): OpenSSL internal error, assertion failed: %s
OpenSSL 1.0.1h 5 Jun 2014
OpenSSL PKCS#3 DH method
OpenSSL DH Method
OpenSSL DSA method
OpenSSL ‘dlfcn’ shared library method
OpenSSL EC algorithm
OpenSSL ECDH method
OpenSSL ECDSA method
OpenSSL HMAC method
You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html
OpenSSL RSA method
OpenSSL default user interface
AES part of OpenSSL 1.0.1h 5 Jun 2014
ASN.1 part of OpenSSL 1.0.1h 5 Jun 2014
Blowfish part of OpenSSL 1.0.1h 5 Jun 2014
Big Number part of OpenSSL 1.0.1h 5 Jun 2014
CONF_def part of OpenSSL 1.0.1h 5 Jun 2014
CONF part of OpenSSL 1.0.1h 5 Jun 2014
DES part of OpenSSL 1.0.1h 5 Jun 2014
libdes part of OpenSSL 1.0.1h 5 Jun 2014
Diffie-Hellman part of OpenSSL 1.0.1h 5 Jun 2014
DSA part of OpenSSL 1.0.1h 5 Jun 2014
^ECDH part of OpenSSL 1.0.1h 5 Jun 2014
ECDSA part of OpenSSL 1.0.1h 5 Jun 2014
EVP part of OpenSSL 1.0.1h 5 Jun 2014
lhash part of OpenSSL 1.0.1h 5 Jun 2014
MD4 part of OpenSSL 1.0.1h 5 Jun 2014
MD5 part of OpenSSL 1.0.1h 5 Jun 2014
PEM part of OpenSSL 1.0.1h 5 Jun 2014
RAND part of OpenSSL 1.0.1h 5 Jun 2014
RC2 part of OpenSSL 1.0.1h 5 Jun 2014
RC4 part of OpenSSL 1.0.1h 5 Jun 2014
RIPE-MD160 part of OpenSSL 1.0.1h 5 Jun 2014
RSA part of OpenSSL 1.0.1h 5 Jun 2014
SHA1 part of OpenSSL 1.0.1h 5 Jun 2014
SHA-256 part of OpenSSL 1.0.1h 5 Jun 2014
SHA-512 part of OpenSSL 1.0.1h 5 Jun 2014
Stack part of OpenSSL 1.0.1h 5 Jun 2014
TXT_DB part of OpenSSL 1.0.1h 5 Jun 2014
X.509 part of OpenSSL 1.0.1h 5 Jun 2014
DTLSv1 part of OpenSSL 1.0.1h 5 Jun 2014
SSLv2 part of OpenSSL 1.0.1h 5 Jun 2014
(((((sSSLv3 part of OpenSSL 1.0.1h 5 Jun 2014
TLSv1 part of OpenSSL 1.0.1h 5 Jun 2014

I replaced the entire curl folder at
cocos2d/external/curl

Cleaned project, generated APK without errors, but still it’s using 1.0.1h. Can you please give me a link again to download the proper CURL folder for my project and what’s that 3rd-party-library-bin?

Just outline specifically what should I replace and where to make this work!

I have downloaded and used the curl from here: https://github.com/cocos2d/cocos2d-x-3rd-party-libs-bin

Thanks for the prompt replies!

@itzo

Your version openSSL is still 1.0.1 … when problem solve its will be 1.0.2

Download From These One …

replace these totally …
but don’t forgot to Update your NDK must be 10 or higher …

when you have done reply me …

@MehulDodiya30 your suggestion did not work. I imported the files you send hellocpp.zip into the project, compiled, no errors, cleaned build and still the OpenSSL is 1.0.1h

I have imported only the one you see below:

under the path: cocos2dx/platform/android/java

I used cocos2d-x v3.5 and v3 branch of 3rd-party-library-bin,
others: NDK r10d, android-21
still trying…

@itzo

It’s Works Successful … I have replied With version 1.0.2 openssl . See on top …
You need to import just libcocos2d . Don’t import other things .

Delete old files and import again New libcocos2d.

@huangkunkunkun

Send Me Your Your problem …

Finally I find out the reason!!! It was Umeng SDK that contains ssl lib, after remove it everything goes right
@itzo
You should check all your 3rd-party-libs if they contain ssl lib.

thanks, i hava found out the reason :smile:

Does not work! Does anyone know if Google Play Services have OpenSSL?

I have one in the project that’s from 2014.

_____
AES part of OpenSSL 1.0.1h 5 Jun 2014
ASN.1 part of OpenSSL 1.0.1h 5 Jun 2014
Blowfish part of OpenSSL 1.0.1h 5 Jun 2014
Big Number part of OpenSSL 1.0.1h 5 Jun 2014
CONF_def part of OpenSSL 1.0.1h 5 Jun 2014
CONF part of OpenSSL 1.0.1h 5 Jun 2014
DES part of OpenSSL 1.0.1h 5 Jun 2014
libdes part of OpenSSL 1.0.1h 5 Jun 2014
Diffie-Hellman part of OpenSSL 1.0.1h 5 Jun 2014
DSA part of OpenSSL 1.0.1h 5 Jun 2014
^ECDH part of OpenSSL 1.0.1h 5 Jun 2014
ECDSA part of OpenSSL 1.0.1h 5 Jun 2014
EVP part of OpenSSL 1.0.1h 5 Jun 2014
lhash part of OpenSSL 1.0.1h 5 Jun 2014
MD4 part of OpenSSL 1.0.1h 5 Jun 2014
MD5 part of OpenSSL 1.0.1h 5 Jun 2014
PEM part of OpenSSL 1.0.1h 5 Jun 2014
RAND part of OpenSSL 1.0.1h 5 Jun 2014
RC2 part of OpenSSL 1.0.1h 5 Jun 2014
RC4 part of OpenSSL 1.0.1h 5 Jun 2014
RIPE-MD160 part of OpenSSL 1.0.1h 5 Jun 2014
RSA part of OpenSSL 1.0.1h 5 Jun 2014
SHA1 part of OpenSSL 1.0.1h 5 Jun 2014
SHA-256 part of OpenSSL 1.0.1h 5 Jun 2014
SHA-512 part of OpenSSL 1.0.1h 5 Jun 2014
Stack part of OpenSSL 1.0.1h 5 Jun 2014
TXT_DB part of OpenSSL 1.0.1h 5 Jun 2014
X.509 part of OpenSSL 1.0.1h 5 Jun 2014
DTLSv1 part of OpenSSL 1.0.1h 5 Jun 2014
SSLv2 part of OpenSSL 1.0.1h 5 Jun 2014
(((((sSSLv3 part of OpenSSL 1.0.1h 5 Jun 2014
TLSv1 part of OpenSSL 1.0.1h 5 Jun 2014
_____

I updated the cocos2dx, using the latest one provided by @MehulDodiya30 and still get old OpenSSL!
Updated all ad jars to the latest and still showing old OpenSSL!

Only Google Play Service lib is outdated, but I have issues updating it. Over 140 errors when add the newest version! I need to know if google-play-services.jar has OpenSSL.

When grep that, it shows:

Is there a way to check the OpenSSL version in jars?

Dear @itzo

I told you that’s Update first everything . If u update then you got right solution …

Update SDK . NDK 10 or higher .delete old cocos2d and paste New cocos2d from this link

Delete old cocos2dx from Android eclipse and paste New cocos2dx from above link .

See My Apk OpenSSL version

Terminal - > $ unzip -p YourPoject.apk | strings | grep “OpenSSL”

GmsCore_OpenSSL
UI_OpenSSL
OpenSSLDie
DH_OpenSSL
OpenSSL_add_all_ciphers
OpenSSL_add_all_digests
DSA_OpenSSL
ECDSA_OpenSSL
ECDH_OpenSSL
OpenSSL was built without SSLv2 support
could not load PEM client certificate, OpenSSL error %s, (no key found, wrong pass phrase, or wrong file format?)
could not load ASN1 client certificate, OpenSSL error %s, (no key found, wrong pass phrase, or wrong file format?)
could not parse PKCS12 file, check password, OpenSSL error %s
could not load PKCS12 client certificate, OpenSSL error %s
unable do create OpenSSL user-interface method
OpenSSL SSL read: %s, errno %d
OpenSSL
OpenSSL 1.0.2g 1 Mar 2016
%s(%d): OpenSSL internal error, assertion failed: %s
OpenSSL DH Method
OpenSSL X9.42 DH method
OpenSSL PKCS#3 DH method
OpenSSL default user interface
OpenSSL CMAC method
OpenSSL HMAC method
OpenSSL EC algorithm
OpenSSL RSA method
OpenSSL DSA method
OpenSSL ECDSA method
OpenSSL ECDH method
You need to read the OpenSSL FAQ, http://www.openssl.org/support/faq.html
OpenSSL default
SSLv3 part of OpenSSL 1.0.2g 1 Mar 2016
TLSv1 part of OpenSSL 1.0.2g 1 Mar 2016
nopqrsDTLSv1 part of OpenSSL 1.0.2g 1 Mar 2016
MD4 part of OpenSSL 1.0.2g 1 Mar 2016
MD5 part of OpenSSL 1.0.2g 1 Mar 2016
SHA1 part of OpenSSL 1.0.2g 1 Mar 2016
SHA-256 part of OpenSSL 1.0.2g 1 Mar 2016
DlSHA-512 part of OpenSSL 1.0.2g 1 Mar 2016
DES part of OpenSSL 1.0.2g 1 Mar 2016
libdes part of OpenSSL 1.0.2g 1 Mar 2016
Big Number part of OpenSSL 1.0.2g 1 Mar 2016
EC part of OpenSSL 1.0.2g 1 Mar 2016
(1RSA part of OpenSSL 1.0.2g 1 Mar 2016
Diffie-Hellman part of OpenSSL 1.0.2g 1 Mar 2016
Stack part of OpenSSL 1.0.2g 1 Mar 2016
lhash part of OpenSSL 1.0.2g 1 Mar 2016
EVP part of OpenSSL 1.0.2g 1 Mar 2016
ASN.1 part of OpenSSL 1.0.2g 1 Mar 2016
PEM part of OpenSSL 1.0.2g 1 Mar 2016
X.509 part of OpenSSL 1.0.2g 1 Mar 2016
AES part of OpenSSL 1.0.2g 1 Mar 2016
cU!
}RC2 part of OpenSSL 1.0.2g 1 Mar 2016
IDEA part of OpenSSL 1.0.2g 1 Mar 2016
CAMELLIA part of OpenSSL 1.0.2g 1 Mar 2016
EDSA part of OpenSSL 1.0.2g 1 Mar 2016
ECDSA part of OpenSSL 1.0.2g 1 Mar 2016
ECDH part of OpenSSL 1.0.2g 1 Mar 2016
RAND part of OpenSSL 1.0.2g 1 Mar 2016
CONF part of OpenSSL 1.0.2g 1 Mar 2016
CONF_def part of OpenSSL 1.0.2g 1 Mar 2016
TXT_DB part of OpenSSL 1.0.2g 1 Mar 2016
+SHA part of OpenSSL 1.0.2g 1 Mar 2016
RIPE-MD160 part of OpenSSL 1.0.2g 1 Mar 2016
3RC4 part of OpenSSL 1.0.2g 1 Mar 2016
:Blowfish part of OpenSSL 1.0.2g 1 Mar 2016
\CAST part of OpenSSL 1.0.2g 1 Mar 2016

it must be something else then. Using the HelloCpp project, adding it in Eclipse as an external lib, deleted any old cocos2dx references. Still shows:

OpenSSL 1.0.1h 5 Jun 2014

And this happens to every cocos2dx project developed, not just one. It must be Google Play lib then. I’ll try to update that, but it’s causing many problems, especially in BaseGameUtils lib that’s also used in the projects.

My project is on Cocos2d-x 2.2.6, NDK r10e, latest Google Services (rev. 29)
I just replaced libcurl folder and all works!

When unzip my apk I can see 1.0.2g everywhere!

Thanks, thanks, thanks!!!

Just checked my app => no warning @@

@itzo

Everybody Successful Done …
May Be Some Other Issue happened …

Send Me Your Problems Fully …

@zhangxm Do we need an iOS libcurl.a fix for v2?

@MehulDodiya30 updated the Google Play services to Rev 29. Still I get the older version of OpenSSL. WTF!

When importing cocos2dx to Eclipse from HelloCpp, what project path you use?

When importing, I am using cocos2dx/platform/android/java/

There are other plugins and sample, what you do with those ? I am using Eclipse for MAC.

@itzo

Everyday have done successfully without error . So there some other issue may be arrised …

Have You update NDK 10 hot higher ?
Which version of cocos2d you have using ?

Import just cocos2d folder and select only cocos2D .

@MehulDodiya30 How do I go about checking and updating the NDK to existing cocos2dx project? What cocos2dx version I use? The HelloCpp one you provided in DropBox.com

@itzo

Ok i think u just pasted libs thats why asking .

remember that don’t replace anything . delete old one then paste .
Means U Have Pasted Fully Cocos2s ? Delete old One cocos2d ?
can i know exactly what kind of all problem arrived ?
give me full description of your problem because i didn’t get properly your problem …