summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--ext/digest/sha2/sha2init.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b4629e0f4..1831845594 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Feb 22 21:35:33 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/digest/sha2/sha2init.c: test OpenSSL more strictly.
+
Mon Feb 22 11:52:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/rubygems: update to 1.3.6.
diff --git a/ext/digest/sha2/sha2init.c b/ext/digest/sha2/sha2init.c
index fca33185d8..25ef6d2546 100644
--- a/ext/digest/sha2/sha2init.c
+++ b/ext/digest/sha2/sha2init.c
@@ -2,7 +2,7 @@
/* $Id$ */
#include "digest.h"
-#if defined(HAVE_OPENSSL_SHA_H)
+#if defined(HAVE_OPENSSL_SHA_H) && defined(HAVE_SHA256_TRANSFORM) && defined(HAVE_SHA512_TRANSFORM)
#include "sha2ossl.h"
#else
#include "sha2.h"