Giter VIP home page Giter VIP logo

ios-openssl's Introduction

OpenSSL for iOS

I urge you to not use this project

I am not supporting this project anymore. I have removed precompiled binaries and releases.

OpenSSL is not a good choice for getting access to crypto primitives or for SSL/TLS networking in iOS applications.

Instead, you should use the iOS provided libraries.

The native iOS Security and Networking Frameworks will always be more up to date and receive regular security fixes as part of iOS upgrades.

References

ios-openssl's People

Contributors

ajacobson avatar st3fan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-openssl's Issues

openssl and compression

I want to use openssl with compression. it is possible to build openssl for ios with compression support?

ARM builds fail

Same problem as somebody else had - the build for armv7 fails cause it cannot find standard headers:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv7 -I. -I.. -I../include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -O3 -fomit-frame-pointer -Wall -c -o cryptlib.o cryptlib.c
In file included from cryptlib.c:117:
cryptlib.h:62:20: error: stdlib.h: No such file or directory
cryptlib.h:63:20: error: string.h: No such file or directory

Modifying the build script

Thanks for this script. I've been using it in a number of apps for a couple years now, I think.

My problem is that another library I want to use (Google AdMobs Ads SDK) is colliding with the MD5 from libcrypto. I'm attempting to remove the MD5 support from libcrypto to eliminate the collision.

My approach is to add no-md5 to line 39 of build.sh. To get this to take effect, a log message said I need to run make depend. I added

make depend &> "/tmp/openssl-${OPENSSL_VERSION}-${ARCH}.log"

before the make on line 43.

When I build now, I get tons of errors during make depend:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/machine/endian.h:35:25: error: i386/endian.h: No such file or directory
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/sys/signal.h:81,
from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/sys/wait.h:116,
from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/stdlib.h:65,
from LPdir_unix.c:29,
from o_dir.c:74:

I'm not sure where I should to resolve these. Can you provide any guidance?

ARM builds fail

Thanks for posting this! Unfortunately, all builds except i386 fail. I checked the logs under the /tmp directory, and the ARM builds start with:

making all in crypto...
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc -arch armv7 -I. -I.. -I../include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DTERMIOS -O3 -fomit-frame-pointer -Wall -c -o cryptlib.o cryptlib.c
In file included from cryptlib.c:117:
cryptlib.h:62:20: error: stdlib.h: No such file or directory
cryptlib.h:63:20: error: string.h: No such file or directory

and continue with similar errors on std symbols and other things like size_t.

This is under OS 10.6.7, Xcode 4.0.2. Any ideas? Thanks!

Error running builld.sh

When I run build.sh, I get this:

~/Documents/Development/iOS/Frameworks/ios-openssl-master ~/Documents/Development/iOS/Frameworks/ios-openssl-master
+ cd openssl-1.0.1c
+ ./Configure BSD-generic32 --openssldir=/tmp/openssl-1.0.1c-i386
+ perl -i -pe 's|static volatile sig_atomic_t intr_signal|static volatile int intr_signal|' crypto/ui/ui_openssl.c
+ perl -i -pe 's|^CC= gcc|CC= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -arch i386|g' Makefile
+ perl -i -pe 's|^CFLAG= (.*)|CFLAG= -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk $1|g' Makefile
+ make
+ make install
+ popd
~/Documents/Development/iOS/Frameworks/ios-openssl-master
+ rm -rf openssl-1.0.1c
+ mkdir include
+ cp -r /tmp/openssl-1.0.1c-i386/include/openssl include/
cp: /tmp/openssl-1.0.1c-i386/include/openssl: No such file or directory
+ mkdir lib
+ lipo /tmp/openssl-1.0.1c-armv7/lib/libcrypto.a /tmp/openssl-1.0.1c-armv7s/lib/libcrypto.a /tmp/openssl-1.0.1c-i386/lib/libcrypto.a -create -output lib/libcrypto.a
lipo: can't open input file: /tmp/openssl-1.0.1c-armv7/lib/libcrypto.a (No such file or directory)
+ lipo /tmp/openssl-1.0.1c-armv7/lib/libssl.a /tmp/openssl-1.0.1c-armv7s/lib/libssl.a /tmp/openssl-1.0.1c-i386/lib/libssl.a -create -output lib/libssl.a
lipo: can't open input file: /tmp/openssl-1.0.1c-armv7/lib/libssl.a (No such file or directory)
+ rm -rf '/tmp/openssl-1.0.1c-*'
+ rm -rf '/tmp/openssl-1.0.1c-*.log'

effectively removing the precombiled libcrypto.a and libssl.a

import openssl in new project

How to import the lib in my project? It doesnt find my header file. I tried to make a new project and make "copy-paste" from your test project but still doesn't works. What i am missing?

Enable bitcode error

Hi! I'm getting the following error (I'm using Xcode 7).

ld: 'path_to_my_file(p5_crpt2.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.