Yes it works like that !
thanks

-----Messaggio originale-----
Da: Sven Hansen <[EMAIL PROTECTED]>
A: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Data: mercoled� 12 maggio 1999 10.34
Oggetto: Re: R: X509*xs structure format to DER format


>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 !
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to