Try..

X509* cert = PEM_read_bio_X509(bio_cert,NULL, 0, NULL);

http://www.openssl.org/docs/crypto/pem.html#

Check the BUGS section down the bottom.

Brad

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of BiGNoRm6969
Sent: Tuesday, December 09, 2008 4:01 AM
To: openssl-users@openssl.org
Subject: PEM_read_bio_X509 - Segmentation fault


Hi,

The function PEM_read_bio_X509 always create a Segmentatio Fault.

Code:
string certificateFile =
"/home/norm/Desktop/tmp/SSLServer_RootCertificate.pem";
X509* cert;
BIO* bio_cert = BIO_new_file(certificateFile.c_str(), "rb");
PEM_read_bio_X509(bio_cert, &cert, NULL, NULL);

Any idea whats causing the problem ?  I tryed it on linux and also on
windows xp...same problem.


-- 
View this message in context:
http://www.nabble.com/PEM_read_bio_X509---Segmentation-fault-tp20900358p2090
0358.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.9.15/1838 - Release Date: 12/9/2008
4:53 PM

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to