简体   繁体   中英

Am I able to use “openssl/bn.h” in iPhone

Which framework i need to import to compile if i want to use openssl/bn.hi am getting compilation errors ("referenced from") for all BN functions

please help

OpenSSL is used internally on the phone, but the API is not supported for app development, and the symbols are not available to iPhone apps.

If you want to use openssl you will need to build it and statically link it with your app. That will also mean you you need to deal with export compliance. Yeah, I think it sucks too. If you think Apple should expose some particular OpenSSL functionality you should file a feature request.

You can also compile OpenSSL as a library for iOS. Here is an script from me what do this automaticly: http://www.x2on.de/2010/12/16/tutorial-script-for-building-openssl-for-ios-iphoneipad/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM