title: How to print a BIO object in opensl or print time from ASN1_TYPE object
body: <p>How do I print the value stored in BIO object "time". Basically I need to extract signed time.</p>
  
  <pre><code>ASN1_TYPE *asn1obj;         
  if (!(asn1obj = PKCS7_get_signed_attribute(si, NID_pkcs9_signingTime))) {
      NSLog(@"Failed to retireve the signing time");
  }else{
      if (asn1obj-&gt;type == V_ASN1_UTCTIME) {
          BIO * time = data=BIO_new(BIO_s_bio());
          i = ASN1_UTCTIME_print(time,asn1obj-&gt;value.utctime);
          NSLog(@"return value from ASN1_UTCTIME_print %d ",i);                   
      }
  }
  </code></pre>
  
  <p>Thanks</p>