aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl_config.c
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-10 13:58:31 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-10 13:58:31 +0000
commitfb65eed72ea35ff40ce9d89aa336a7e8c5d57850 (patch)
treec8f9030381e8aa7e05b222c680d702059e2ac333 /ext/openssl/ossl_config.c
parent8852a09e9e539dfff79df88b1cea23ffc75262f7 (diff)
downloadruby-fb65eed72ea35ff40ce9d89aa336a7e8c5d57850.tar.gz
* ext/openssl/ossl.h: define OSSL_NO_CONF_API for win32 platform.
libeay32.dll doesn't export functions defined in conf_api.h. this workaround is to avoid link error. * ext/openssl/ossl_config.c (ossl_config_initialize): ditto. * ext/openssl/ossl_config.c (ossl_config_add_value): ditto. * ext/openssl/ossl_config.c (set_conf_section_i): should check if the argument is Array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/ossl_config.c')
-rw-r--r--ext/openssl/ossl_config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c
index 1e42cb6e9f..baed8345e7 100644
--- a/ext/openssl/ossl_config.c
+++ b/ext/openssl/ossl_config.c
@@ -220,6 +220,7 @@ set_conf_section_i(VALUE i, VALUE *arg)
{
VALUE name, value;
+ Check_Type(i, T_ARRAY);
name = rb_ary_entry(i, 0);
value = rb_ary_entry(i, 1);
ossl_config_add_value(arg[0], arg[1], name, value);