Hi,

I'm trying to write my first application with openssl and I am stuck on what
must be a simple problem. I have a certificate in memory and can use the
following code to access it.

 X509 *cert = NULL;
 X509_NAME *name = NULL;

 SSLeay_add_all_algorithms();
 ERR_load_crypto_strings();

 cert = d2i_X509(NULL, (unsigned char
**)&vtrCertsStatus[0].cs_entityCert.b_data,
(long)vtrCertsStatus[0].cs_entityCert.b_size );
 X509_free(cert);

However when I pass the vtrCertsStatus structure to a DLL and try to perform
the above cert is always = NULL. Should I be using some other function
instead of the d2i_X509 if passing between programs/DLL?

Any help much appreciated.

/colin

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to