From 8768030bb6b217de19158f54421dfd34d0dfaa80 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Mon, 27 Dec 2004 07:55:56 +0000 Subject: [PATCH] * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@7666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/openssl/ossl_x509name.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f3eafabc9d..20eb0b8dc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 27 16:54:05 2004 GOTOU Yuuzou + + * 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:29:12 2004 Minero Aoki * test/fileutils/test_fileutils.rb (cp_r): tested wrong file name. diff --git a/ext/openssl/ossl_x509name.c b/ext/openssl/ossl_x509name.c index 624e610548..989e28a7e6 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);