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.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to