title: d2i_X509_CRL_bio returns NULL, error number 0xd06b08e
body: <p>Below is my code where i m fetching crl using http</p>
  
  <pre><code>bp_bio = BIO_new_mem_buf(http_reply-&gt;payload, -1);
  if(!bp_bio) {
      printf("recieved no data in http reply");
  }
  
  crl = d2i_X509_CRL_bio(bp_bio, NULL);
  if (!crl) {
      while ((l=ERR_get_error_line_data(&amp;file,&amp;line,&amp;data,&amp;flags)) != 0) {
          printf( "\n: CRL Error %x : %s : %s : %d\n",
                  l, ERR_error_string(l,buf), file,line);
      }
      printf( "parsing failed");
  } else {
      ret = X509_CRL_dup(crl);
  }
  BIO_free(bp);
  </code></pre>
  
  <p>Error i am getting is:</p>
  
  <blockquote>
    <p>CRL Error d06b08e : error:0D06B08E:lib(13):func(107):reason(142) :
    a_d2i_fp.c : 246</p>
  </blockquote>
  
  <p>Why is d2i_X509_CRL_bio returning NULL, and how do I fix it?</p>