如何更新CSipSimple中的OpenSSL版本? [英] How to update OpenSSL version in CSipSimple?

查看:223
本文介绍了如何更新CSipSimple中的OpenSSL版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的应用程序使用CSipSimple代码。但不幸的是,Google Play商店提出了一个警告:
您正在使用OpenSSL的易受攻击版本



我想更新OpenSSL从现有的代码版本。



以下是我所遵循的一些参考。 CSipSimple,OpenSSL的
,而我第5步没有这样的命令


命令未找到


我遵循不正确的步骤吗?如果任何人已经完成了这个,请帮助我或提供一些步骤/链接。



任何帮助都会得到真正的赞赏

解决方案

在其中一个本地库中使用易受攻击的OpenSSL版本的问题,我为@Nonos解决方案添加了更多的细节和说明。本教程适用于CSipSimple,但构建OpenSSL静态库是更通用的解决方案。



我推荐第二种解决方案,因为添加静态OpenSSL库是更简单的解决方案。 >

前提条件:需要首先配置Android NDK。


  1. 首先,下载OpenSSL兼容版本(> 1.0.2f / 1.0.1r)。

  2. 这个链接。如果有人想知道他们做了什么:他们为每个android构建(armeabi,x86,mips等等)构建OpenSSL库。

  3. 修改 setenv-android修改 - >行 18 与ndk版本

  4. 修改 setenv-android-mod.sh - >行 40 使用Android API版本

  5. 修改 build-all-arch.sh - >第7行使用OpenSSL库的文件夹名称(在我的情况下,它是 openssl-1.0.1t
  6. 成功构建后,在文件夹 dist 内将出现库

  7. 把这些文件夹 csipsimple / CSipSimple-行李箱内/ CSipSimple / JNI / OpenSSL的/ lib中

  8. 把头文件从的OpenSSL-1.0.1 {版本} /包括 csipsimple / cSipSimple干线/ cSipSimple / JNI / OpenSSL的/包括。请注意,一些头文件是与其他文件的符号链接。

  9. 编译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.

  1. First of all, download the OpenSSL compatible version (> 1.0.2f/1.0.1r).
  2. 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...)
  3. Modify setenv-android-mod.sh -> line 18 with the ndk version
  4. Modify setenv-android-mod.sh -> line 40 with the Android API version
  5. Modify build-all-arch.sh -> line 7 with the folder name of the OpenSSL library (in my case it was openssl-1.0.1t)
  6. After successful build, inside the folder dist the libraries will be present
  7. Put those folders inside csipsimple/CSipSimple-trunk/CSipSimple/jni/openssl/lib
  8. Put header files from openssl-1.0.1{version}/include to csipsimple/CSipSimple-trunk/CSipSimple/jni/openssl/include. Be aware, that some of the header files are symlinks to other files.
  9. Compile CSipSimple. Be aware, that OpenSSL and CSipSimple must be compiled with the same Android API version.

Should build successfully after making steps.

这篇关于如何更新CSipSimple中的OpenSSL版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆