Date: Sat, 21 Apr 2012 07:18:19 -0400 From: Erik Winkler <ewinkler@...ls.com> To: john-dev@...ts.openwall.com Subject: Re: JtR compilation warnings on OS X 10.7.3 with Xcode 4.3.2 Here is a solution I have seen in the aircrack-ng code. Might be interesting to see if there is any performance benefit over OpenSSL at this point. #if defined(__APPLE__) && defined(__MACH__) #define COMMON_DIGEST_FOR_OPENSSL #include <CommonCrypto/CommonDigest.h> #define SHA1 CC_SHA1 #include <CommonCrypto/CommonHMAC.h> #define HMAC CCHmac #else #include <openssl/hmac.h> #include <openssl/sha.h> // We don't use EVP. Bite me #include <openssl/rc4.h> #include <openssl/aes.h> #endif Thanks, Erik >> >> Hard Fix: Use Apple's recommended CommonCrypto API instead of OpenSSL. >> This option will involve addition of lot of ifdefs in the existing >> code. >> >> -- >> Cheers, >> Dhiru >
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.