1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/openssl/ossl_ns_spki.c (ossl_spki_set_challenge): should call

StringValue before GetSPKI. fixed: [ruby-dev:25359].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
gotoyuzo 2004-12-31 19:24:11 +00:00
parent 0eaf4872a6
commit 72f2ca1117
2 changed files with 8 additions and 3 deletions

View file

@ -1,7 +1,12 @@
Sat Jan 1 04:20:23 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/ossl_ns_spki.c (ossl_spki_set_challenge): should call
StringValue before GetSPKI. fixed: [ruby-dev:25359].
Fri Dec 31 14:10:43 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::display_flow_item): Fix problem
if heading contains formatting.
* lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::display_flow_item):
Fix problem if heading contains formatting.
Fri Dec 31 00:08:02 2004 Tanaka Akira <akr@m17n.org>

View file

@ -155,8 +155,8 @@ ossl_spki_set_challenge(VALUE self, VALUE str)
{
NETSCAPE_SPKI *spki;
GetSPKI(self, spki);
StringValue(str);
GetSPKI(self, spki);
if (!ASN1_STRING_set(spki->spkac->challenge, RSTRING(str)->ptr,
RSTRING(str)->len)) {
ossl_raise(eSPKIError, NULL);