ruby-changes:13258
From: marcandre <ko1@a...>
Date: Tue, 22 Sep 2009 01:13:51 +0900 (JST)
Subject: [ruby-changes:13258] Ruby:r25019 (trunk): * ossl_ocsp.c (ossl_ocspres_to_der): Bug fix in Response#to_def. Patch by Chris Chandler
marcandre 2009-09-22 01:13:35 +0900 (Tue, 22 Sep 2009) New Revision: 25019 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25019 Log: * ossl_ocsp.c (ossl_ocspres_to_der): Bug fix in Response#to_def. Patch by Chris Chandler [ruby-core:18411] Modified files: trunk/ChangeLog trunk/ext/openssl/ossl_ocsp.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25018) +++ ChangeLog (revision 25019) @@ -1,3 +1,8 @@ +Tue Sep 22 01:10:22 2009 Marc-Andre Lafortune <ruby-core@m...> + + * ossl_ocsp.c (ossl_ocspres_to_der): Bug fix in Response#to_def. + Patch by Chris Chandler [ruby-core:18411] + Tue Sep 22 01:10:02 2009 Marc-Andre Lafortune <ruby-core@m...> * ossl_config.c (ossl_config_add_value_m, ossl_config_set_section): Index: ext/openssl/ossl_ocsp.c =================================================================== --- ext/openssl/ossl_ocsp.c (revision 25018) +++ ext/openssl/ossl_ocsp.c (revision 25019) @@ -382,7 +382,7 @@ ossl_raise(eOCSPError, NULL); str = rb_str_new(0, len); p = (unsigned char *)RSTRING_PTR(str); - if(i2d_OCSP_RESPONSE(res, NULL) <= 0) + if(i2d_OCSP_RESPONSE(res, &p) <= 0) ossl_raise(eOCSPError, NULL); ossl_str_adjust(str, p); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/