TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | Custom |
ReleasedLast Release | Apr 2016 |
Maintained by smartwalle.
本项目是 https://github.com/x2on/OpenSSL-for-iPhone 的一个分支,原项目提供了很强大的编译 OpenSSL for iOS 的脚本,为了方便以后在 iOS 开发中使用 OpenSSL, 特此在原项目的基础上引入 Pod 进行管理。
如果你想直接使用本项目提供的 OpenSSL 版本 (目前为 1.0.2g),只需要在您项目的 Podfile 文件里面添加以下内容即可:
pod 'OpenSSL-iOS', :git => "https://github.com/smartwalle/OpenSSL-iOS.git"
如果你想选择特定的 OpenSSL 版本,只需要下载本项目,将 build-libssl.sh 文件中的 VERSION 变量设定为你需要的版本,然后执行 ./build-libssl.sh,该脚本会自动下载 OpenSSL 的源代码并进行编译。编译完成后,会在目录下生成 lib、bin 和 include 文件夹,lib 目录下为 iOS 各架构平台合并之后的静态库,各架构平台单独的静态库存放于 bin 目录下,include 为头文件。
https://github.com/x2on/OpenSSL-for-iPhone
This is a script for using self-compiled builds of the OpenSSL-library on the iPhone. You can build apps with XCode and the official SDK from Apple with this. I also made a small example-app for using the libraries with XCode and the iPhone/iPhone-Simulator.
Enjoy OpenSSL on the iPhone!
You must build the OpenSSL-Libraries before running the sample with:
./build-libssl.sh
This repository contains a iOS 9.1 XCode Project with usese the OpenSSL Libaries. The examples uses the MD5 or SHA256-algorithm to calculate an md5 or sha256 hash from an UITextfield.
iOS 7.0 - iOS 9.2 (i386, x86_64, armv7, armv7s, armv64, bitcode) and tvOS are currently supported.
For iOS < 7.0 you must use Xcode < 7 and an older version of the build script.
If you have problems building for arm64 please uninstall MacPorts (see #28).