summaryrefslogtreecommitdiffstats
path: root/ext/openssl
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-22 20:28:02 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-22 20:28:02 +0000
commitb3252256e61ef9c0cac50995daad542abad12be0 (patch)
treec6b824c24acdc026ac40fa28cd83baff0bdbaea3 /ext/openssl
parent6e9dd009704b4b73bb1769a866d8107fd2674c65 (diff)
downloadruby-b3252256e61ef9c0cac50995daad542abad12be0.tar.gz
ruby-b3252256e61ef9c0cac50995daad542abad12be0.tar.xz
ruby-b3252256e61ef9c0cac50995daad542abad12be0.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/trunk@7810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/ossl_ocsp.c2
1 files changed, 1 insertions, 1 deletions
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);