dirk laurijssen wrote:
> 
> Ok,
> 
> I modified that,and added the OpenSSL_add_all_algorithms(), but to no avail.
> Any other hints ?
> 
> Thanks & kind regards,
> dirk L.
> 

What value do you get from X509_get_version? It returns the value of the
version field which is one less than the certificate version.

BTW OpenSSL_add_all_algorithms() isn't needed to check the version field
and it certainly shouldn't be called repeatedly in a funtion: just once
at startup.

However I notice:

>     pem_cert = d2i_X509(NULL, &p, length);

Is the data in PEM format (text with BEGIN and END lines?) if so you
can't use d2i_X509, you need a memory BIO instead.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.

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

Reply via email to