-
-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure on OS X ≤ 10.9 due to missing CommonCrypto/CommonRandom.h #384
Comments
You can build instead using the Brian's Gladman's library -DMZ_BRG=ON or OpenSSL instead -DMZ_OPENSSL=ON |
Note that if you're coming from the branch 1.2, then it was historically using BRG (Brian's Gladman's AES lib), so |
I have added a check to the cmake in the |
Thanks, I'll look into those.
Thanks, but it looks like you added a check for CommonCrypto.h, but the header you're using that's missing is CommonRandom.h. The first appearance of some of the Common Crypto functions was Mac OS X 10.4. The CommonCrypto.h header (which just includes some of the others) was added in OS X 10.8. The CommonRandom.h header (which contains the |
Ok, I have updated it again. Thank you. |
I'm not sure if it makes sense to use |
I have changed it to use |
Regarding CommonCrypto.h, in my projects, I only target macOS 10.8+ for "modern" Objective-C or macOS 10.14.3+ for Swift with stable ABI, so I always have that header. Regarding CCRandomCopyBytes, it's partially open source: https://opensource.apple.com/source/CommonCrypto/CommonCrypto-60074/lib/CommonRandom.c rng = ccDRBGGetRngState();
return ccrng_generate((struct ccrng_state *)(struct ccrng_CommonCrypto_state *)rng, count, bytes); So it has the same signature as SecRandomCopyBytes, and yes, they are probably interchangeable. And for the laugh, CommonCrypto is using Brian Gladman AES under the hood: https://opensource.apple.com/source/CommonCrypto/CommonCrypto-55010/Source/GladmanAES/ |
Haha that is a good laugh! It looks like more recent versions might not use it, still funny though. |
Hi,
Just wanted to let you know that minizip 2.8.6 fails to build on OS X 10.9 and earlier because:
Here are build failure logs for OS X 10.7, 10.8, and 10.9.
It builds fine on OS X 10.10 and later.
The text was updated successfully, but these errors were encountered: