ruby-changes:19958
From: nahi <ko1@a...>
Date: Sat, 11 Jun 2011 19:40:25 +0900 (JST)
Subject: [ruby-changes:19958] nahi:r32005 (trunk): * ext/openssl/ossl_x509req.c: raise RequestError instead of
nahi 2011-06-11 19:39:47 +0900 (Sat, 11 Jun 2011) New Revision: 32005 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32005 Log: * ext/openssl/ossl_x509req.c: raise RequestError instead of CertificateError when Request#to_der gets an error from OpenSSL. Patch from Ippei Obayashi, see #4420. I cannot write a test for this... Request does not allow to create broken bytes... Modified files: trunk/ChangeLog trunk/ext/openssl/ossl_x509req.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32004) +++ ChangeLog (revision 32005) @@ -1,3 +1,10 @@ +Sat Jun 11 19:27:06 2011 Hiroshi Nakamura <nahi@r...> + + * ext/openssl/ossl_x509req.c: raise RequestError instead of + CertificateError when Request#to_der gets an error from OpenSSL. + Patch from Ippei Obayashi, see #4420. I cannot write a test for + this... Request does not allow to create broken bytes... + Sat Jun 11 19:34:51 2011 Tadayoshi Funaba <tadf@d...> * ext/date/date_core.c (Date::(ABBR_)?(MONTH|DAY)NAMES): should be usascii. Index: ext/openssl/ossl_x509req.c =================================================================== --- ext/openssl/ossl_x509req.c (revision 32004) +++ ext/openssl/ossl_x509req.c (revision 32005) @@ -171,7 +171,7 @@ GetX509Req(self, req); if ((len = i2d_X509_REQ(req, NULL)) <= 0) - ossl_raise(eX509CertError, NULL); + ossl_raise(eX509ReqError, NULL); str = rb_str_new(0, len); p = (unsigned char *)RSTRING_PTR(str); if (i2d_X509_REQ(req, &p) <= 0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/