зеркало из https://github.com/github/ruby.git
* ext/openssl/ossl_ocsp.c (ossl_ocspreq_to_der): should call
GetOCSPReq at first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
4f61ea5864
Коммит
8d8c9f6cd1
|
@ -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 22:59:08 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
Sat Jan 22 22:59:08 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
* lib/drb/ssl.rb (accept): rescue SSLError. [druby-ja:110]
|
* lib/drb/ssl.rb (accept): rescue SSLError. [druby-ja:110]
|
||||||
|
|
|
@ -261,11 +261,11 @@ ossl_ocspreq_to_der(VALUE self)
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
long len;
|
long len;
|
||||||
|
|
||||||
|
GetOCSPReq(self, req);
|
||||||
if((len = i2d_OCSP_REQUEST(req, NULL)) <= 0)
|
if((len = i2d_OCSP_REQUEST(req, NULL)) <= 0)
|
||||||
ossl_raise(eOCSPError, NULL);
|
ossl_raise(eOCSPError, NULL);
|
||||||
str = rb_str_new(0, len);
|
str = rb_str_new(0, len);
|
||||||
p = RSTRING(str)->ptr;
|
p = RSTRING(str)->ptr;
|
||||||
GetOCSPReq(self, req);
|
|
||||||
if(i2d_OCSP_REQUEST(req, &p) <= 0)
|
if(i2d_OCSP_REQUEST(req, &p) <= 0)
|
||||||
ossl_raise(eOCSPError, NULL);
|
ossl_raise(eOCSPError, NULL);
|
||||||
ossl_str_adjust(str, p);
|
ossl_str_adjust(str, p);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче