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 ) {
>>     printf("Unable to alloc mem buffer\n");
>>     return -1;
>>   }
>>   int zzz = i2d_X509_REQ_INFO( req->req_info, &tobesigned );
>> ....
>>     
> http://www.openssl.org/support/faq.html#PROG3
>
> Steve.
>
>   

Thank you. RTFM....
I've spend many hours debugging and looking to the openssl sources and
didn't realized this easy stupid thing :)
Now it's working as expected...

Thanks a lot,
Peter.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to