openssl api is deprecated in Mac OS 10.7 Instead it is advised to use CommonCrypto/CommonDigest.h which has an api compatible with openssl: #if defined(__APPLE__) # define COMMON_DIGEST_FOR_OPENSSL # include <CommonCrypto/CommonDigest.h> # define SHA1 CC_SHA1 #else # include <openssl/sha.h> #endif -- Posted via http://www.ruby-forum.com/.