diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-10 13:43:27 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-10 13:43:27 +0000 |
commit | 3587c1c725f9ff49347a36716125ee91090efd75 (patch) | |
tree | 15bd24befffd778ee087f3eb3405730c7981ae8d /ext/openssl | |
parent | 46b5d7308b4c92b87b6f6c59176593d081025840 (diff) | |
download | ruby-3587c1c725f9ff49347a36716125ee91090efd75.tar.gz |
* 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')
-rw-r--r-- | ext/openssl/ossl.h | 1 | ||||
-rw-r--r-- | ext/openssl/ossl_config.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index e684d212e6..fd0c41ee1d 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -24,6 +24,7 @@ extern "C" { #if defined(_WIN32) # define OpenFile WINAPI_OpenFile +# define OSSL_NO_CONF_API 1 #endif #include <errno.h> #include <openssl/err.h> diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c index 835f2a5b3d..1e42cb6e9f 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 |