Linking to libcrypto for Leopard?

后端 未结 5 663
既然无缘
既然无缘 2020-12-15 09:57

I am using Mac OS X 10.6 SDK and my deployment target is set to Mac OS 10.5. I\'m linking to libcrypto (AquaticPrime requires this) and found out that my app doesn\'t launc

5条回答
  •  一向
    一向 (楼主)
    2020-12-15 10:27

    Depending on what you're using the lib for, you might be able to replace libcrypto with CommonCrypto which works well with both 10.5 and 10.6. I've used libcrypto only for the MD5 function, so I replaced openssl/md5.h with CommonCrypto/CommonDigest.h and MD5() with CC_MD5(), and libcrypto with CommonCrypto, and now it works on both Leopards.

提交回复
热议问题