summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-08 20:19:01 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-08 20:19:01 +0000
commit9edcc5e99af8a859b0b3f4f0f3ac9174a611d8c9 (patch)
tree5ae2793da363d84ba7c0cd7a49204147c1133719 /ext/openssl
parentbe28a6ffd8f3bc6b80fa4325091f518642f93bf9 (diff)
* ext/openssl/ossl_config.rb: avoid compile error in OpenSSL-0.9.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/ossl_config.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c
index fe5eba7211..835f2a5b3d 100644
--- a/ext/openssl/ossl_config.c
+++ b/ext/openssl/ossl_config.c
@@ -264,6 +264,7 @@ ossl_config_get_section_old(VALUE self, VALUE section)
return ossl_config_get_section(self, section);
}
+#ifdef IMPLEMENT_LHASH_DOALL_ARG_FN
static void
get_conf_section(CONF_VALUE *cv, VALUE ary)
{
@@ -285,7 +286,16 @@ ossl_config_get_sections(VALUE self)
return ary;
}
+#else
+static VALUE
+ossl_config_get_sections(VALUE self)
+{
+ rb_warn("Config::sections don't work with %s", OPENSSL_VERSION_TEXT);
+ return rb_ary_new();
+}
+#endif
+#ifdef IMPLEMENT_LHASH_DOALL_ARG_FN
static void
dump_conf_value(CONF_VALUE *cv, VALUE str)
{
@@ -331,6 +341,14 @@ ossl_config_to_s(VALUE self)
return dump_conf(conf);
}
+#else
+static VALUE
+ossl_config_to_s(VALUE self)
+{
+ rb_warn("Config::to_s don't work with %s", OPENSSL_VERSION_TEXT);
+ return rb_str_new(0, 0);
+}
+#endif
static VALUE
ossl_config_inspect(VALUE self)