From 937ff7bdeb84361431651fbbe9158152efc2f6c1 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 7 Aug 2011 06:38:36 +0000 Subject: * ext/digest/sha2/sha2ossl.c: use original SHA384_Final on DragonFly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/digest/sha2/sha2ossl.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index c1c1aba573..57cedfa783 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Aug 7 15:37:35 2011 NARUSE, Yui + + * ext/digest/sha2/sha2ossl.c: use original SHA384_Final on DragonFly. + Sun Aug 7 14:08:16 2011 Kazuki Tsujimoto * 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) -- cgit v1.2.3