Project

General

Profile

Bug #514 ยป ruby-changes.patch

squanderingtime (Chris Chandler), 08/28/2008 03:15 PM

View differences:

ext/openssl/ossl_ocsp.c (working copy)
ossl_raise(eOCSPError, NULL);
str = rb_str_new(0, len);
p = (unsigned char *)RSTRING_PTR(str);
if(i2d_OCSP_RESPONSE(res, NULL) <= 0)
if(i2d_OCSP_RESPONSE(res, &p) <= 0)
ossl_raise(eOCSPError, NULL);
ossl_str_adjust(str, p);
    (1-1/1)