How to add openssl to a quick project

I’m learning how to add receipt verification in my app for my iOS / OSX projects.

There is a good review here, and WWDC14 has good videos on this topic.

Lots of code examples, but each skips one step. How to import openSSL header. The fast compiler complains that there is no such module.

import Foundation import StoreKit import openssl //no such module ??? 

I am already stuck before writing one line of code. Where is the openssl frame hiding?

+5
source share
1 answer

There is no built-in OpenSSL module. You must compile it yourself - this is to ensure security so that everyone does not implement exactly the same security.

Take a look at: https://gist.github.com/foozmeat/5154962 http://www.cvursache.com/2013/08/13/How-To-Build-openssl-For-iOS/

There is also cocoapods at http://cocoapods.org/?q=openssl

You should never use a static module provided by someone else. Always create your own.

The official explanation of apples here is under OpenSSl - https://developer.apple.com/library/ios/documentation/Security/Conceptual/cryptoservices/GeneralPurposeCrypto/GeneralPurposeCrypto.html

+2
source

All Articles