diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/digest/sha2/sha2ossl.c | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Sun Aug 7 15:37:35 2011 NARUSE, Yui <naruse@ruby-lang.org> + + * ext/digest/sha2/sha2ossl.c: use original SHA384_Final on DragonFly. + Sun Aug 7 14:08:16 2011 Kazuki Tsujimoto <kazuki@callcc.net> * ext/objspace/objspace.c: fix typos in a document. diff --git a/ext/digest/sha2/sha2ossl.c b/ext/digest/sha2/sha2ossl.c index 86824e72f4..34353be8b8 100644 --- a/ext/digest/sha2/sha2ossl.c +++ b/ext/digest/sha2/sha2ossl.c @@ -4,7 +4,9 @@ #define SHA_Finish(bit) \ void SHA##bit##_Finish(SHA##bit##_CTX *ctx, char *buf) \ { SHA##bit##_Final((unsigned char *)buf, ctx);} +#ifndef __DragonFly__ #define SHA384_Final SHA512_Final +#endif SHA_Finish(256) SHA_Finish(384) |