Why is Apple Deprecating OpenSSL in MacOS 10.7 (Lion)? [closed]

一曲冷凌霜 提交于 2019-11-26 09:41:13

问题


Apple has marked most (but not all) of the OpenSSL API as \"deprecated\" in MacOS 10.7. Has Apple made any statements explaining why they are moving from OpenSSL to Common Crypto?


回答1:


Apple is migrating from OpenSSL to Common Crypto (which Apple develops).

Some docs: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/CC_crypto.3cc.html

Info on WHY Apple is doing this: http://adcdownload.apple.com/wwdc_2011/adc_on_itunes__wwdc11_sessions__pdf/212_nextgeneration_cryptographic_services.pdf

If the above link fails (it probably will), here are navigation instructions:

  • Logon to http://developer.apple.com
  • Scroll to bottom, click on 'Development Videos'
  • On the next page, click 'Learn more' under WWDC 2011
  • Scroll down about half-way (or search) until you see 'Next Generation Cryptographic Services', and click it
  • You have now reached the buried treasure, download the 'Presentation Slides'



回答2:


Because OpenSSL doesn’t offer API compatibility between versions

This means that Apple can't provide security updates without breaking existing apps.

http://rentzsch.tumblr.com/post/33696323211/wherein-i-write-apples-technote-about-openssl-on-os-x




回答3:


The dylib openssl is deprecated because of binary compatibility issues across versions (eg: causes problems like Why does the OpenSSL test suite fail on MacOS X? ).

See joet3ch's answer for what Apple suggests to do about it.

However, you're free/encouraged to get openssl from openssl.org and link statically.



来源:https://stackoverflow.com/questions/7406946/why-is-apple-deprecating-openssl-in-macos-10-7-lion

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!