On Wed, Apr 04, 2012, brajan wrote:

> 
> I am using openssl 0.9.8g version .
> 
> i convert the PEM certificate file to X509 format and try to read the key
> usage value .
> Keyuage =lCertificate->ex_kusage ;
> 
> Some time the keyusage = 128 
> Some time Keyusage is 0 for the same certificate . why this problem occurs
> ...

You need to ensure that that information is set up. Call
X509_check_purpose(cert, -1, 0) first.

An alternative way to decode any extension is to use:
X509_get_ext_d2i().

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to