I’m linking against a static library build from source, and including local headers, not the headers in /usr/include, but Xcode still lists may functions as depreciated, and it’s failing to find symbols. Has anyone gotten libssl working on Lion?
I’m linking against a static library build from source, and including local headers, not
Share
Yep, SSL functions are deprecated on Lion.
You should use stuff from CommonCrypto instead. Basically, it has replacements for all SSL functions, and they are usually compatible.
For instance, if you use MD5 (openssl/md5.h), you’ll get those deprecated warnings.
You can the include CommonDigest, and use CC_MD5_* functions, instead of the old MD5_* ones.
You should also be able to produce a compatibility header, to support other systems.
Something like:
This is only for MD5, but you should be able to do the some for most other functions.
EDIT
CommonCrypto only support symmetric encryption, through CCCryptor.
If you need asymmetric encryption, you should use the Security framework.
Be sure to take a look at the Security Transforms Programming Guide.