Mac app store — trying to get encryption to work .

2019-07-17 01:58发布

问题:

I am trying to use Alan Quartermain's solution as linked from this question, Mac App Store Receipt Validation Code? I keep running into a bunch of unknown symbol errors at link time. Here are some of the unknown symbols: _BIO_new, _BIO_ctrl_, _EVP_sha1, _X509_STORE_free. Can anyone clue me in to what I need to do to get rid of these errors?

Things I have done:

  • Install OS X 10.6.7 combo update
  • Install Xcode 3.2.5
  • Install Xcode Developer Tools 1.1
  • Link frameworks:
    • Security;
    • SecurityFoundation;
    • SecurityInterface;
    • IOKit;
    • CoreServices.

Thanks.

回答1:

All the symbols you’ve listed are exported by libcrypto, which is part of OpenSSL. Have you tried linking libcrypto as well? You can do that by editing your project settings, Build tab, Other Linker Flags, and specifying -lcrypto.