From 6bfc1f3900b20164d6ff35ab01c5ff03c7457143 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Fri, 11 Feb 2005 08:42:57 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ ext/openssl/ossl_x509store.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9527e272c2..fa9741c6c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 11 17:37:50 2005 GOTOU Yuuzou + + * 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 * lib/open-uri.rb (URI::HTTP#proxy_open): new option supported: diff --git a/ext/openssl/ossl_x509store.c b/ext/openssl/ossl_x509store.c index cf1a2cdac4..b08f90cde8 100644 --- a/ext/openssl/ossl_x509store.c +++ b/ext/openssl/ossl_x509store.c @@ -238,6 +238,17 @@ ossl_x509store_add_path(VALUE self, VALUE dir) 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 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, "add_path", ossl_x509store_add_path, 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_crl", ossl_x509store_add_crl, 1); rb_define_method(cX509Store, "verify", ossl_x509store_verify, -1);