RE: PEM_read is always returning null

2009-08-20 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Azlan > Sent: Tuesday, 18 August, 2009 08:24 > > Hello every one..I'm working with an application in which a module > > should read a "pem" certificate successfully.I've written 2 > types of > > programs, but both are failing(PEM_read constan

Re: PEM_read is always returning null

2009-08-20 Thread sandeep kiran p
Why dont you try something as, X509* user_cert = NULL; if ((user_cert = PEM_read_X509(fp, NULL, NULL, NULL)) == NULL) { /* Error */ } or with a bio as, X509 *x = NULL; if (!PEM_read_bio_X509(bp, &x, 0, NULL)) { /* Error */ } On Tue, Aug 18, 2009 at 5:24 AM, Azlan

Re: PEM_read is always returning null

2009-08-18 Thread Azlan
Azlan wrote: > > Hello every one..I'm working with an application in which a module should > read a "pem" certificate successfully.I've written 2 types of programs, > but both are failing(PEM_read constantly returning null )..here are my > codes.. > > > #include > #include > #include > #inc