diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-27 07:55:56 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-27 07:55:56 +0000 |
| commit | f15aec6deb8e2ad0610f4eab723461728b72bc60 (patch) | |
| tree | d0264d58149f3d73e08b4a2a9cdc1b572d75b80c | |
| parent | b16ae6bf9f6faa5b9c2abdf35ee57065e0635f12 (diff) | |
| download | ruby-f15aec6deb8e2ad0610f4eab723461728b72bc60.tar.gz ruby-f15aec6deb8e2ad0610f4eab723461728b72bc60.tar.xz ruby-f15aec6deb8e2ad0610f4eab723461728b72bc60.zip | |
* ext/openssl/ossl_x509name.c (Init_ossl_x509name): should use
rb_hash_new to get exactly a Hash. fix [ruby-dev:25325].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ext/openssl/ossl_x509name.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Dec 27 16:55:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * ext/openssl/ossl_x509name.c (Init_ossl_x509name): should use + rb_hash_new to get exactly a Hash. fix [ruby-dev:25325]. + Mon Dec 27 15:47:48 2004 Minero Aoki <aamine@loveruby.net> * test/fileutils/fileasserts.rb: sync with HEAD. diff --git a/ext/openssl/ossl_x509name.c b/ext/openssl/ossl_x509name.c index be1f1de66..c5ed8b545 100644 --- a/ext/openssl/ossl_x509name.c +++ b/ext/openssl/ossl_x509name.c @@ -326,7 +326,8 @@ Init_ossl_x509name() ptrstr = INT2NUM(V_ASN1_PRINTABLESTRING); ia5str = INT2NUM(V_ASN1_IA5STRING); rb_define_const(cX509Name, "DEFAULT_OBJECT_TYPE", utf8str); - hash = rb_funcall(rb_cHash, rb_intern("new"), 1, DEFAULT_OBJECT_TYPE); + hash = rb_hash_new(); + RHASH(hash)->ifnone = utf8str; rb_hash_aset(hash, rb_str_new2("C"), ptrstr); rb_hash_aset(hash, rb_str_new2("countryName"), ptrstr); rb_hash_aset(hash, rb_str_new2("serialNumber"), ptrstr); |
