如何更新CSipSimple中的OpenSSL版本? [英] How to update OpenSSL version in CSipSimple?
问题描述
我为我的应用程序使用CSipSimple代码。但不幸的是,Google Play商店提出了一个警告:
您正在使用OpenSSL的易受攻击版本
我想更新OpenSSL从现有的代码版本。
以下是我所遵循的一些参考。 CSipSimple,OpenSSL的
,而我第5步没有这样的命令
命令未找到
我遵循不正确的步骤吗?如果任何人已经完成了这个,请帮助我或提供一些步骤/链接。
任何帮助都会得到真正的赞赏
在其中一个本地库中使用易受攻击的OpenSSL版本的问题,我为@Nonos解决方案添加了更多的细节和说明。本教程适用于CSipSimple,但构建OpenSSL静态库是更通用的解决方案。
我推荐第二种解决方案,因为添加静态OpenSSL库是更简单的解决方案。 >
前提条件:需要首先配置Android NDK。
- 首先,下载OpenSSL兼容版本(> 1.0.2f / 1.0.1r)。
- 从这个链接。如果有人想知道他们做了什么:他们为每个android构建(armeabi,x86,mips等等)构建OpenSSL库。
- 修改
setenv-android修改
- >行
18
与ndk版本 - 修改
setenv-android-mod.sh
- >行40
使用Android API版本 - 修改
build-all-arch.sh
- >第7行使用OpenSSL库的文件夹名称(在我的情况下,它是openssl-1.0.1t
- 成功构建后,在文件夹
dist
内将出现库 - 把这些文件夹
csipsimple / CSipSimple-行李箱内/ CSipSimple / JNI / OpenSSL的/ lib中
- 把头文件从
的OpenSSL-1.0.1 {版本} /包括
来csipsimple / cSipSimple干线/ cSipSimple / JNI / OpenSSL的/包括
。请注意,一些头文件是与其他文件的符号链接。 - 编译CSipSimple。请注意,必须使用相同的Android API版本编译
OpenSSL
和CSipSimple
。
制作步骤后应该成功构建。
I am using CSipSimple code for my application. But unfortunately, Google Playstore has raised a warning: You are using a vulnerable version of OpenSSL
I want to update the OpenSSL version from existing code.
Here is some reference which I have followed. CSipSimple-OpenSSL But I am stuck at step 5 there are no such command
m: command not found
Am I following incorrect steps? If any one have already done with this, then please help me or provide some steps/link.
Any help would be really appreciated
In case someone encounters the problem of using vulnerable version of OpenSSL in one of the native libraries, I add some more details and instructions for the @Nonos solution. This tutorial is for CSipSimple but building OpenSSL static libraries is a more generic solution.
I recommend the second solution as adding a static OpenSSL library is more simple solution.
Preconditions: Android NDK need to be configured first.
- First of all, download the OpenSSL compatible version (> 1.0.2f/1.0.1r).
- Download two scripts from this link. In case someone wonders what they do: They build the OpenSSL library for every android build (armeabi, x86, mips, etc...)
- Modify
setenv-android-mod.sh
-> line18
with the ndk version - Modify
setenv-android-mod.sh
-> line40
with the Android API version - Modify
build-all-arch.sh
-> line 7 with the folder name of the OpenSSL library (in my case it wasopenssl-1.0.1t
) - After successful build, inside the folder
dist
the libraries will be present - Put those folders inside
csipsimple/CSipSimple-trunk/CSipSimple/jni/openssl/lib
- Put header files from
openssl-1.0.1{version}/include
tocsipsimple/CSipSimple-trunk/CSipSimple/jni/openssl/include
. Be aware, that some of the header files are symlinks to other files. - Compile CSipSimple. Be aware, that
OpenSSL
andCSipSimple
must be compiled with the same Android API version.
Should build successfully after making steps.
这篇关于如何更新CSipSimple中的OpenSSL版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!