1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/openss/ossl_x509store.c (ossl_x509store_set_default_paths):

new method OpenSSL::X509::Store#set_default_paths.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoyuzo 2005-02-11 08:42:57 +00:00
parent db6d5b15be
commit 6bfc1f3900
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Feb 11 17:37:50 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openss/ossl_x509store.c (ossl_x509store_set_default_paths):
new method OpenSSL::X509::Store#set_default_paths.
Fri Feb 11 11:33:53 2005 Tanaka Akira <akr@m17n.org> Fri Feb 11 11:33:53 2005 Tanaka Akira <akr@m17n.org>
* lib/open-uri.rb (URI::HTTP#proxy_open): new option supported: * lib/open-uri.rb (URI::HTTP#proxy_open): new option supported:

View file

@ -238,6 +238,17 @@ ossl_x509store_add_path(VALUE self, VALUE dir)
return self; return self;
} }
static VALUE
ossl_x509store_set_default_paths(VALUE self)
{
X509_STORE *store;
GetX509Store(self, store);
X509_STORE_set_default_paths(store);
return Qnil;
}
static VALUE static VALUE
ossl_x509store_add_cert(VALUE self, VALUE arg) ossl_x509store_add_cert(VALUE self, VALUE arg)
{ {
@ -574,6 +585,7 @@ Init_ossl_x509store()
rb_define_method(cX509Store, "time=", ossl_x509store_set_time, 1); rb_define_method(cX509Store, "time=", ossl_x509store_set_time, 1);
rb_define_method(cX509Store, "add_path", ossl_x509store_add_path, 1); rb_define_method(cX509Store, "add_path", ossl_x509store_add_path, 1);
rb_define_method(cX509Store, "add_file", ossl_x509store_add_file, 1); rb_define_method(cX509Store, "add_file", ossl_x509store_add_file, 1);
rb_define_method(cX509Store, "set_default_paths", ossl_x509store_set_default_paths, 0);
rb_define_method(cX509Store, "add_cert", ossl_x509store_add_cert, 1); rb_define_method(cX509Store, "add_cert", ossl_x509store_add_cert, 1);
rb_define_method(cX509Store, "add_crl", ossl_x509store_add_crl, 1); rb_define_method(cX509Store, "add_crl", ossl_x509store_add_crl, 1);
rb_define_method(cX509Store, "verify", ossl_x509store_verify, -1); rb_define_method(cX509Store, "verify", ossl_x509store_verify, -1);