diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-22 20:28:02 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-22 20:28:02 +0000 |
commit | 4197c30c42e70653d480b3859d5dfa6ef8b0623a (patch) | |
tree | 1c2b3cbc3e94a418d6bdf851dff8061772f43562 | |
parent | 8aac7cfba1f7c029c3e334ac7a074f378468416b (diff) | |
download | ruby-4197c30c42e70653d480b3859d5dfa6ef8b0623a.tar.gz ruby-4197c30c42e70653d480b3859d5dfa6ef8b0623a.tar.xz ruby-4197c30c42e70653d480b3859d5dfa6ef8b0623a.zip |
* ext/openssl/ossl_ocsp.c (ossl_ocspreq_to_der): should call
GetOCSPReq at first.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/openssl/ossl_ocsp.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun Jan 23 05:24:42 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * ext/openssl/ossl_ocsp.c (ossl_ocspreq_to_der): should call + GetOCSPReq at first. + Sat Jan 22 23:09:47 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp> * lib/drb/ssl.rb (accept): rescue SSLError. [druby-ja:110] diff --git a/ext/openssl/ossl_ocsp.c b/ext/openssl/ossl_ocsp.c index f88f74994..b1e721c24 100644 --- a/ext/openssl/ossl_ocsp.c +++ b/ext/openssl/ossl_ocsp.c @@ -261,11 +261,11 @@ ossl_ocspreq_to_der(VALUE self) unsigned char *p; long len; + GetOCSPReq(self, req); if((len = i2d_OCSP_REQUEST(req, NULL)) <= 0) ossl_raise(eOCSPError, NULL); str = rb_str_new(0, len); p = RSTRING(str)->ptr; - GetOCSPReq(self, req); if(i2d_OCSP_REQUEST(req, &p) <= 0) ossl_raise(eOCSPError, NULL); ossl_str_adjust(str, p); |