title: how to get the Keyusage value from the X509 certificate?
body: <p>I want to retrieve the Key usage value from the X509 structured certificate , i tried the following code</p>
  
  <pre><code> X509* lcert=NULL;
   lCert=PEM_read(filename); // function will return the certificate in X509
  unsigned long lKeyusage= lCert-&gt;ex_kusage;
  </code></pre>
  
  <p>When i print the lKeyusage value  .. some times i get 128 ... sometimes i get  0 for the same certificate ..
  Can any one tell me what is the error .?
  If i am doing wrong please give me some  sample code or Correct API ..</p>