mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
b97ceb66e9
* ext/digest/digest_conf.rb (digest_conf): check for CommonDigest. * ext/digest/*/*cc.h: for Apple CommonCrypto/CommonDigest.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12 lines
322 B
C
12 lines
322 B
C
#define COMMON_DIGEST_FOR_OPENSSL 1
|
|
#include <CommonCrypto/CommonDigest.h>
|
|
|
|
#define MD5_BLOCK_LENGTH CC_MD5_BLOCK_BYTES
|
|
|
|
static DEFINE_UPDATE_FUNC_FOR_UINT(MD5);
|
|
static DEFINE_FINISH_FUNC_FROM_FINAL(MD5);
|
|
|
|
#undef MD5_Update
|
|
#undef MD5_Finish
|
|
#define MD5_Update rb_digest_MD5_update
|
|
#define MD5_Finish rb_digest_MD5_finish
|