diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-03 19:29:13 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-03 19:29:13 +0000 |
| commit | 00a2713f3166672c1702a818b7b1326799f3aa95 (patch) | |
| tree | 1d1155231f1712e4e10fb970f8b6aaf58d384c52 /ext | |
| parent | 108e81f9c30bf09c75eff3217c14baccd07c89a1 (diff) | |
| download | ruby-00a2713f3166672c1702a818b7b1326799f3aa95.tar.gz ruby-00a2713f3166672c1702a818b7b1326799f3aa95.tar.xz ruby-00a2713f3166672c1702a818b7b1326799f3aa95.zip | |
* ext/openssl/extconf.rb: add check for X509V3_set_nconf.
* ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_config):
cannot implement if X509V3_set_nconf doesn't exist.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/openssl/extconf.rb | 1 | ||||
| -rw-r--r-- | ext/openssl/ossl_x509ext.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 87a815f55..5ef85beae 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -80,6 +80,7 @@ have_func("BN_mod_sub") have_func("BN_rand_range") have_func("BN_pseudo_rand_range") have_func("CONF_get1_default_config_file") +have_func("X509V3_set_nconf") if try_compile("#define FOO(a, ...) foo(a, ##__VA_ARGS__)\n int x(){FOO(1);FOO(1,2);FOO(1,2,3);}\n") $defs.push("-DHAVE_VA_ARGS_MACRO") end diff --git a/ext/openssl/ossl_x509ext.c b/ext/openssl/ossl_x509ext.c index eddc7b447..23e768a9b 100644 --- a/ext/openssl/ossl_x509ext.c +++ b/ext/openssl/ossl_x509ext.c @@ -162,6 +162,7 @@ ossl_x509extfactory_set_crl(VALUE self, VALUE crl) static VALUE ossl_x509extfactory_set_config(VALUE self, VALUE config) { +#ifdef HAVE_X509V3_SET_NCONF X509V3_CTX *ctx; CONF *conf; @@ -171,6 +172,9 @@ ossl_x509extfactory_set_config(VALUE self, VALUE config) X509V3_set_nconf(ctx, conf); return config; +#else + rb_notimplement(); +#endif } static VALUE |
