mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@4666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9d04d1df14
commit
7d18f560f5
3 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Sat Oct 4 04:24:19 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
Sat Oct 4 02:12:44 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
Sat Oct 4 02:12:44 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||||
|
|
||||||
* lib/xsd/datatypes.rb: dump sign by itself. under the problematic
|
* lib/xsd/datatypes.rb: dump sign by itself. under the problematic
|
||||||
|
|
|
@ -80,6 +80,7 @@ have_func("BN_mod_sub")
|
||||||
have_func("BN_rand_range")
|
have_func("BN_rand_range")
|
||||||
have_func("BN_pseudo_rand_range")
|
have_func("BN_pseudo_rand_range")
|
||||||
have_func("CONF_get1_default_config_file")
|
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")
|
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")
|
$defs.push("-DHAVE_VA_ARGS_MACRO")
|
||||||
end
|
end
|
||||||
|
|
|
@ -162,6 +162,7 @@ ossl_x509extfactory_set_crl(VALUE self, VALUE crl)
|
||||||
static VALUE
|
static VALUE
|
||||||
ossl_x509extfactory_set_config(VALUE self, VALUE config)
|
ossl_x509extfactory_set_config(VALUE self, VALUE config)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_X509V3_SET_NCONF
|
||||||
X509V3_CTX *ctx;
|
X509V3_CTX *ctx;
|
||||||
CONF *conf;
|
CONF *conf;
|
||||||
|
|
||||||
|
@ -171,6 +172,9 @@ ossl_x509extfactory_set_config(VALUE self, VALUE config)
|
||||||
X509V3_set_nconf(ctx, conf);
|
X509V3_set_nconf(ctx, conf);
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
|
#else
|
||||||
|
rb_notimplement();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue