Latest 1.0.26
Homepage https://github.com/smartwalle/KIOpenSSL
License OpenSSL (OpenSSL/SSLeay)
Platforms ios 6.0, tvos 9.0
Authors , , , , , , , , , , , , , , ,

OpenSSL-for-iOS

说明

本项目是 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 为头文件。

Forked from

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.

System support

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).

Original tutorials for this project:

Changelog

  • 2015-12-11: Xcode 7.2 support, iOS 9.2
  • 2015-12-03: OpenSSL 1.0.2e
  • 2015-11-17: tvOS example app, Migrate to Swift for example app
  • 2015-11-16: tvOS support
  • 2015-10-25: Xcode 7.1 support
  • 2015-08-06: iOS 9.0 support, Bitcode support
  • 2015-07-09: OpenSSL 1.0.2d, iOS 8.4
  • 2015-06-15: OpenSSL 1.0.2c, iOS 8.3
  • 2015-06-11: OpenSSL 1.0.2b
  • 2015-03-19: OpenSSL 1.0.2a
  • 2015-01-28: OpenSSL 1.0.2
  • 2015-01-10: OpenSSL 1.0.1k
  • 2014-10-15: OpenSSL 1.0.1j
  • 2014-09-18: iOS 8.0 support
  • 2014-08-08: OpenSSL 1.0.1i
  • 2014-06-05: OpenSSL 1.0.1h
  • 2014-04-07: OpenSSL 1.0.1g
  • 2014-03-12: iOS 7.1 support
  • 2014-01-07: OpenSSL 1.0.1f
  • 2013-10-12: x86_64 support, Migrate project to iOS 7.0
  • 2013-09-23: iOS 7.0 support
  • 2013-03-01: OpenSSL 1.0.1e, iOS 6.1
  • 2012-09-21: Support for iOS 6.0 and iPhone 5 (armv7s) – Remove armv6 support
  • 2012-05-17: OpenSSL 1.0.1c
  • 2012-05-02: OpenSSL 1.0.1b
  • 2012-04-01: OpenSSL 1.0.1, Modernizes project to use ARC
  • 2012-01-28: OpenSSL 1.0.0g, Optimized build script
  • 2011-10-23: OpenSSL 1.0.0e, iOS 5.0
  • 2011-02-08: OpenSSL 1.0.0d
  • 2010-12-16: Script for building OpenSSL
  • 2010-12-04: SHA256 Hash, Clean project file with iOS 4.2 as base SDK
  • 2010-12-04: OpenSSL 1.0.0c
  • 2010-11-16: OpenSSL 1.0.0b
  • 2010-06-30: OpenSSL 1.0.0a, iOS 4.0 as base SDK
  • 2010-06-10: OpenSSL 0.9.8o, iPad Version
  • 2010-03-31: OpenSSL 0.9.8n
  • 2010-02-26: OpenSSL 0.9.8m

Latest podspec

{
    "name": "KIOpenSSL",
    "version": "1.0.26",
    "summary": "OpenSSL for iOS",
    "description": "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support. Supports iOS including Simulator (armv7,armv7s,arm64,i386,x86_64).",
    "homepage": "https://github.com/smartwalle/KIOpenSSL",
    "license": {
        "type": "OpenSSL (OpenSSL/SSLeay)",
        "file": "LICENSE.txt"
    },
    "source": {
        "git": "https://github.com/smartwalle/KIOpenSSL.git",
        "tag": "1.0.26"
    },
    "authors": {
        "Mark J. Cox": "[email protected]",
        "Ralf S. Engelschall": "[email protected]",
        "Dr. Stephen Henson": "[email protected]",
        "Ben Laurie": "[email protected]",
        "Lutz Ju00e4nicke": "[email protected]",
        "Nils Larsch": "[email protected]",
        "Richard Levitte": "[email protected]",
        "Bodo Mu00f6ller": "[email protected]",
        "Ulf Mu00f6ller": "[email protected]",
        "Andy Polyakov": "[email protected]",
        "Geoff Thorpe": "[email protected]",
        "Holger Reif": "[email protected]",
        "Paul C. Sutton": "[email protected]",
        "Eric A. Young": "[email protected]",
        "Tim Hudson": "[email protected]",
        "Justin Plouffe": "[email protected]"
    },
    "platforms": {
        "ios": "6.0",
        "tvos": "9.0"
    },
    "ios": {
        "source_files": "include/openssl/**/*.h",
        "public_header_files": "include/openssl/**/*.h",
        "header_dir": "openssl",
        "preserve_paths": [
            "lib/libcrypto.a",
            "lib/libssl.a"
        ],
        "vendored_libraries": [
            "lib/libcrypto.a",
            "lib/libssl.a"
        ]
    },
    "tvos": {
        "source_files": "include/openssl/**/*.h",
        "public_header_files": "include/openssl/**/*.h",
        "header_dir": "openssl",
        "preserve_paths": [
            "lib/libcrypto.a",
            "lib/libssl.a"
        ],
        "vendored_libraries": [
            "lib/libcrypto-tvOS.a",
            "lib/libssl-tvOS.a"
        ]
    },
    "libraries": [
        "ssl",
        "crypto"
    ],
    "requires_arc": false
}

Pin It on Pinterest

Share This