RE: Error while reading X509 structure by d2i_X509_bio using memory bio

2009-07-02 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of rajeshk_pec99-open...@yahoo.com > Sent: Thursday, 02 July, 2009 06:53 > FILE *fp = 0; > char derCert[MAX_CERT_LEN]; > long len; > if (fp = fopen("../der.cer", "rb")) { > len=fread(de

Re: Error while reading X509 structure by d2i_X509_bio using memory bio

2009-07-02 Thread Dr. Stephen Henson
On Thu, Jul 02, 2009, rajeshk_pec99-open...@yahoo.com wrote: > I am trying to use d2i_X509_bio to read a DER encoded certificate from memory > BIO, but I can't get it to work. It works fine if I construct a file BIO to > read from a file. Am I doing something wrong, or is this a bug? > > See th