License OpenSSL (OpenSSL/SSLeay)
Platforms ios 8.0


Version numbering

Because OpenSSL’s version numbers are not compatible with the CocoaPods version numbering, we will agree on the following.

OpenSSL version: A.B.CD will become A.B.C*100 + place of D in the alphabeth.

Example: OpenSSL 1.0.1h => OpenSSL 1.0.108

Keeping the pod up-to-date

With the new Cocoapods "trunk" system, a Pod has a maintainer. Being the maintainer of the OpenSSL pod, I will try my best to keep it updated. If however, you see that the Pod is way behind, please submit a pull request with the changes and I’ll submit it to Trunk after review.

Latest podspec

    "name": "OpenSSL-XM",
    "version": "",
    "summary": "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.Fork from FredericJacobs's repo",
    "authors": "OpenSSL Project ",
    "homepage": "",
    "source": {
        "http": "",
        "sha1": "bdfbdb416942f666865fa48fe13c2d0e588df54f"
    "source_files": "opensslIncludes/openssl/*.h",
    "header_dir": "openssl",
    "license": {
        "type": "OpenSSL (OpenSSL/SSLeay)",
        "file": "LICENSE"
    "prepare_command": "VERSION="1.0.2j"nSDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null`nMIN_SDK_VERSION_FLAG="-miphoneos-version-min=7.0"nnBASEPATH="${PWD}"nCURRENTPATH="/tmp/openssl"n#CURRENTPATH="${PWD}/tmp"nnARCHS="i386 x86_64 armv7 armv7s arm64"nDEVELOPER=`xcode-select -print-path`nnnmkdir -p "${CURRENTPATH}"nmkdir -p "${CURRENTPATH}/bin"    nncp -rf "${BASEPATH}/" "${CURRENTPATH}/openssl-${VERSION}"n#cp "file.tgz" "${CURRENTPATH}/file.tgz"ncd "${CURRENTPATH}"n#tar -xzf file.tgzncd "openssl-${VERSION}"nnfor ARCH in ${ARCHS}ndon  CONFIGURE_FOR="iphoneos-cross"nn  if [ "${ARCH}" == "i386" ] || [ "${ARCH}" == "x86_64" ] ;n  thenn    PLATFORM="iPhoneSimulator"n    if [ "${ARCH}" == "x86_64" ] ;n    thenn      CONFIGURE_FOR="darwin64-x86_64-cc"n    fin  elsen    sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c"n    PLATFORM="iPhoneOS"n  finn  export CROSS_TOP="${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer"n  export CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk"nn  echo "Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}"n  echo "Please stand by..."nn  export CC="${DEVELOPER}/usr/bin/gcc -arch ${ARCH} ${MIN_SDK_VERSION_FLAG}"n  mkdir -p "${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk"n  LOG="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log"nn  LIPO_LIBSSL="${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a"n  LIPO_LIBCRYPTO="${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a"nn  ./Configure ${CONFIGURE_FOR} --openssldir="${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk" > "${LOG}" 2>&1n  sed -ie "s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !" "Makefile"nn  make >> "${LOG}" 2>&1n  make all install_sw >> "${LOG}" 2>&1n  make clean >> "${LOG}" 2>&1ndonennnecho "Build library..."nrm -rf "${BASEPATH}/lib/"nmkdir -p "${BASEPATH}/lib/"nlipo -create ${LIPO_LIBSSL}    -output "${BASEPATH}/lib/libssl.a"nlipo -create ${LIPO_LIBCRYPTO} -output "${BASEPATH}/lib/libcrypto.a"nnecho "Copying headers..."nrm -rf "${BASEPATH}/opensslIncludes/"nmkdir -p "${BASEPATH}/opensslIncludes/"ncp -RL "${CURRENTPATH}/openssl-${VERSION}/include/openssl" "${BASEPATH}/opensslIncludes/"nncd "${BASEPATH}"necho "Building done."nnecho "Cleaning up..."nrm -rf "${CURRENTPATH}"necho "Done."",
    "platforms": {
        "ios": "8.0"
    "ios": {
        "public_header_files": "opensslIncludes/openssl/*.h",
        "vendored_libraries": [
    "libraries": [
    "requires_arc": false

Pin It on Pinterest

Share This