summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_config.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-10 13:43:27 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-10 13:43:27 +0000
commit3587c1c725f9ff49347a36716125ee91090efd75 (patch)
tree15bd24befffd778ee087f3eb3405730c7981ae8d /ext/openssl/ossl_config.c
parent46b5d7308b4c92b87b6f6c59176593d081025840 (diff)
* eval.c (win32_get_exception_list): avoid VC7 warning.
[ruby-win32:577] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_config.c')
-rw-r--r--ext/openssl/ossl_config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c
index 835f2a5..1e42cb6 100644
--- a/ext/openssl/ossl_config.c
+++ b/ext/openssl/ossl_config.c
@@ -148,7 +148,11 @@ ossl_config_initialize(int argc, VALUE *argv, VALUE self)
ossl_raise(eConfigError, "error in %s:%d", filename, eline);
}
}
+#ifdef OSSL_NO_CONF_API
+ else rb_raise(rb_eArgError, "wrong number of arguments(0 for 1)");
+#else
else _CONF_new_data(conf);
+#endif
return self;
}
@@ -156,6 +160,9 @@ ossl_config_initialize(int argc, VALUE *argv, VALUE self)
static VALUE
ossl_config_add_value(VALUE self, VALUE section, VALUE name, VALUE value)
{
+#ifdef OSSL_NO_CONF_API
+ rb_notimplement();
+#else
CONF *conf;
CONF_VALUE *sv, *cv;
@@ -181,6 +188,7 @@ ossl_config_add_value(VALUE self, VALUE section, VALUE name, VALUE value)
}
return value;
+#endif
}
static VALUE