title: x509 certificate subject alternative name
body: <p>When using the x509 certificate in c++ obtained using the function <code>SSL_get_peer_certificate</code>, which function should be used to handle the <code>subject alternative name</code> field of the certificate? Some certificates dont have multiple CN's but have multiple <code>subject alternative name</code>. How should that be handled?</p>
  
  <p>I was able to get the x509_EXTENSIONS struture. </p>
  
  <pre><code>typedef struct X509_extension_st
      {
      ASN1_OBJECT *object;
      ASN1_BOOLEAN critical;
      ASN1_OCTET_STRING *value;
      } X509_EXTENSION;
  </code></pre>
  
  <p>What is the difference between the <code>object</code> and the <code>value</code> pointers?</p>