Bug #4420 » x509req_ossl_x509req_to_der.patch
ext/openssl/ossl_x509req.c | ||
---|---|---|
GetX509Req(self, req);
|
||
if ((len = i2d_X509_REQ(req, NULL)) <= 0)
|
||
ossl_raise(eX509CertError, NULL);
|
||
ossl_raise(eX509ReqError, NULL);
|
||
str = rb_str_new(0, len);
|
||
p = (unsigned char *)RSTRING_PTR(str);
|
||
if (i2d_X509_REQ(req, &p) <= 0)
|