ruby-changes:12813
From: nobu <ko1@a...>
Date: Fri, 14 Aug 2009 20:03:42 +0900 (JST)
Subject: [ruby-changes:12813] Ruby:r24541 (trunk): * include/ruby/ruby.h (rb_check_safe_str): deprecated.
nobu 2009-08-14 20:03:22 +0900 (Fri, 14 Aug 2009) New Revision: 24541 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24541 Log: * include/ruby/ruby.h (rb_check_safe_str): deprecated. * ext/openssl/ossl_x509store.c (ossl_x509store_add_{file,path}): replaced deprecated funtion. Modified files: trunk/ChangeLog trunk/ext/openssl/lib/openssl/digest.rb trunk/ext/openssl/ossl_x509store.c trunk/include/ruby/ruby.h Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 24540) +++ include/ruby/ruby.h (revision 24541) @@ -401,7 +401,7 @@ #define StringValueCStr(v) rb_string_value_cstr(&(v)) void rb_check_safe_obj(VALUE); -void rb_check_safe_str(VALUE); +DEPRECATED(void rb_check_safe_str(VALUE)); #define SafeStringValue(v) do {\ StringValue(v);\ rb_check_safe_obj(v);\ Index: ChangeLog =================================================================== --- ChangeLog (revision 24540) +++ ChangeLog (revision 24541) @@ -1,3 +1,10 @@ +Fri Aug 14 20:03:10 2009 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/ruby.h (rb_check_safe_str): deprecated. + + * ext/openssl/ossl_x509store.c (ossl_x509store_add_{file,path}): + replaced deprecated funtion. + Fri Aug 14 17:59:12 2009 NARUSE, Yui <naruse@r...> * re.c (rb_reg_preprocess_dregexp): change Exception class to Index: ext/openssl/ossl_x509store.c =================================================================== --- ext/openssl/ossl_x509store.c (revision 24540) +++ ext/openssl/ossl_x509store.c (revision 24541) @@ -211,7 +211,7 @@ char *path = NULL; if(file != Qnil){ - Check_SafeStr(file); + SafeStringValue(file); path = RSTRING_PTR(file); } GetX509Store(self, store); @@ -232,7 +232,7 @@ char *path = NULL; if(dir != Qnil){ - Check_SafeStr(dir); + SafeStringValue(dir); path = RSTRING_PTR(dir); } GetX509Store(self, store); Index: ext/openssl/lib/openssl/digest.rb =================================================================== --- ext/openssl/lib/openssl/digest.rb (revision 24540) +++ ext/openssl/lib/openssl/digest.rb (revision 24541) @@ -40,7 +40,7 @@ super(name, data.first) } } - singleton = (class <<klass; self; end) + singleton = (class << klass; self; end) singleton.class_eval{ define_method(:digest){|data| Digest.digest(name, data) } define_method(:hexdigest){|data| Digest.hexdigest(name, data) } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/