Re: i2d_X509_REQ_INFO doesn't convert req_info structure properly

2010-03-11 Thread Peter Gubis
On 11. 3. 2010 17:54, Dr. Stephen Henson wrote: > On Thu, Mar 11, 2010, Peter Gubis wrote: > > >> int datasig_len; >> unsigned char *tobesigned; >> datasig_len = i2d_X509_REQ_INFO( req->req_info, NULL ); >> tobesigned = (unsigned char *) malloc( datasig_len ); >> if( !tobesigned ) {

Re: i2d_X509_REQ_INFO doesn't convert req_info structure properly

2010-03-11 Thread Dr. Stephen Henson
On Thu, Mar 11, 2010, Peter Gubis wrote: > > int datasig_len; > unsigned char *tobesigned; > datasig_len = i2d_X509_REQ_INFO( req->req_info, NULL ); > tobesigned = (unsigned char *) malloc( datasig_len ); > if( !tobesigned ) { > printf("Unable to alloc mem buffer\n"); > return -