> Filip Van de Velde wrote:
> 
> Hi,
> 
> I have to do extension checking on a certificate (DER encoded) which
> is passed to the validate_ssl() function (see below).
> 
> I translate the certificate from DER format to an internal form
> and want to do the appropriate checking. Therefore I first have to get
> the nid of the extensions. When I do the nid checking for the Extended
> Key Usage parameter of an X509v3 certificate, I always get the nid 0
> (this means "undefined").
> 
[code deleted]

Its hard to see what might be wrong without seeing the actual
certificate that causes the problem. Try adding an X509_print and see if
that can see all the extensions.

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