From: Nobuyoshi Nakada Date: 2010-01-08T18:36:06+09:00 Subject: [ruby-core:27488] Re: [Feature #2022] Patch for openssl-1.0 Hi, At Tue, 5 Jan 2010 19:05:54 +0900, Hongli Lai wrote in [ruby-core:27417]: > There are some compilation warnings. All RubySpec OpenSSL > tests pass, but some Ruby OpenSSL tests fail. It seems that > OpenSSL changed somewhat in behavior; for example some > #verify methods now raise an error instead of returning > false. > The attached patches fixes some compilation warnings and > fixes some unit tests. - rconf = rb_iv_get(self, "@config"); + i_config = rb_intern("@config"); + if (rb_ivar_defined(self, i_config)) + rconf = rb_ivar_get(self, i_config); + else + rconf = Qnil; conf = NIL_P(rconf) ? NULL : GetConfigPtr(rconf); ext = X509V3_EXT_nconf_nid(conf, ctx, nid, RSTRING_PTR(valstr)); #else rb_attr_get() doesn't yield "not initialized" warning. -- Nobu Nakada