diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-14 11:03:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-14 11:03:22 +0000 |
commit | a254debc95f9dbeff6cdcc78a4992063f390958b (patch) | |
tree | e806f27e9608f4f4ac7ccf8493745e3800b16c86 /ext/openssl | |
parent | a9431f9bc8e0650eefb169ae77d93cb8299f49ee (diff) | |
download | ruby-a254debc95f9dbeff6cdcc78a4992063f390958b.tar.gz ruby-a254debc95f9dbeff6cdcc78a4992063f390958b.tar.xz ruby-a254debc95f9dbeff6cdcc78a4992063f390958b.zip |
* include/ruby/ruby.h (rb_check_safe_str): deprecated.
* ext/openssl/ossl_x509store.c (ossl_x509store_add_{file,path}):
replaced deprecated funtion.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/lib/openssl/digest.rb | 2 | ||||
-rw-r--r-- | ext/openssl/ossl_x509store.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/lib/openssl/digest.rb b/ext/openssl/lib/openssl/digest.rb index 4810f0121..e603c41de 100644 --- a/ext/openssl/lib/openssl/digest.rb +++ b/ext/openssl/lib/openssl/digest.rb @@ -40,7 +40,7 @@ module OpenSSL 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) } diff --git a/ext/openssl/ossl_x509store.c b/ext/openssl/ossl_x509store.c index 68fb372ea..23fb95230 100644 --- a/ext/openssl/ossl_x509store.c +++ b/ext/openssl/ossl_x509store.c @@ -211,7 +211,7 @@ ossl_x509store_add_file(VALUE self, VALUE file) char *path = NULL; if(file != Qnil){ - Check_SafeStr(file); + SafeStringValue(file); path = RSTRING_PTR(file); } GetX509Store(self, store); @@ -232,7 +232,7 @@ ossl_x509store_add_path(VALUE self, VALUE dir) char *path = NULL; if(dir != Qnil){ - Check_SafeStr(dir); + SafeStringValue(dir); path = RSTRING_PTR(dir); } GetX509Store(self, store); |