summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/openssl/extconf.rb11
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 23e1b492f..30658f66a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 20 02:49:22 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: add check for OpenSSL version.
+ [ruby-list:39054]
+
Mon Jan 19 23:56:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (name_err_mesg_to_str): inverted condition for result of
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index a4239a122..afcb03816 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -58,6 +58,17 @@ if !result
end
end
+check_opensslv = <<_end_of_src_
+#include <openssl/opensslv.h>
+#if OPENSSL_VERSION_NUMBER < 0x0090600fL
+# error too old
+#endif
+_end_of_src_
+if !try_compile(check_opensslv)
+ message "OpenSSL 0.9.6 or later required.\n"
+ exit 1
+end
+
message "=== Checking for OpenSSL features... ===\n"
have_func("HMAC_CTX_copy")
have_func("X509_STORE_get_ex_data")