Oddly, iOS doesn’t provide any OpenSSL implementation at all — If you want to do anything with crypto (like checking signatures, checksumming, etc.), you have to build in the library yourself.
I came across a great XCode project wrapper for OpenSSL yesterday, by Stephen Lombardo. This is an XCode project file that contains a target to build OpenSSL from source, and works with both Mac and iOS projects. I made some modifications to it, in order to make it work by just dropping in the OpenSSL source tarball, without having to dirty up your source tree with the extracted OpenSSL distribution.
Here’s how to use it:
- Download the OpenSSL source.
- Put the downloaded OpenSSL source tar.gz into the same folder
as openssl.xcodeproj (I put it in
Library/opensslwithin my project tree). - Drag the openssl.xcodeproj file into your main project tree in XCode.
- Right-click on your project target, and add openssl.xcodeproj under “Direct Dependencies” on the General tab.
On the Build tab for your project’s target, find the “Header Search Paths” option, and add the path:
$(SRCROOT)/Library/openssl/build/openssl.build/openssl/include(Assuming you’ve put openssl.xcodeproj at the path
Library/openssl— adjust as necessary).- Expand your target’s “Link Binary With Libraries” build stage, and drag libcrypto.a from the openssl.xcodeproj group.
Then, you can just import and use as normal (#import <openssl/dsa.h>, etc).




The Cartographer 1.2 is here, with awesome navigation features
The new version introduces Navigon support, so you can get turn-by-turn navigation to any placemark on your map — this is great for researching then running errands, home or abroad. For example, need a new iPad? Search for “Apple Store” on Google Maps, click “Save To…” and choose a My Map (or use the new Clipper on any webpage with an address), then open it in The Cartographer, select the new placemark, and navigate there. Totally seamless.
The other new feature is an in-app compass which provides bearing and distance information to the selected placemark. A needle points to your destination, while the dial shows which way’s north. Particularly useful for hiking — we used this just the other week in Exmoor National Park, and it was indispensable.
Grab The Cartographer 1.2 on the App Store, or find out more.