Andrea e Luca Giacobazzi wrote:
> 
> That's exactly what I tried Sven !
> But why the connection stops from netscape, if I put the i2d_X509 calling
> inside ssl_engine_kernel.c , in ssl_callback_verify routine ?
> 
> Thanks a lot.
unsigned char *certificate, *pp;
//get the length of object
size_t certLength=i2d_X509(x509, NULL);
certificate=pp=new unsigned char[certLength];
//now get the data into object
if (pp) 
{
        i2d_X509(x509, &pp);
        if (pp-certificate!=certLength) error...
...


So it works for me. Please note that pp is increased by the
length of the certificate. That's why You have to save the
original pointer.

-- 
          _,
Regards, (_
         ,_)ven Hansen.

+-------------------------------------------------------+
| Dipl.-Chem. Sven Hansen      Celo Communications GmbH |
| 06217 Merseburg             Weissenfelser Strasse 46a |
| mailto:[EMAIL PROTECTED]            http://www.celocom.de |
| Phone: +49 (0)3461/3318-24    Fax: +49 (0)3461/415072 |
| Germany                                               |
+-------------------------------------------------------+
Unix _IS_ user friendly - 
          it's just selective about who its friends are !

S/MIME Cryptographic Signature

Reply via email to