Ray O'Hagan wrote:
> 
> I'm having problems with X509_NAME_free - each time I call
> it, it core dumps. This happens every time on Win98 and occasionally
> on Solaris. Has anyone come across a similar problem ? Any help/pointers
> would be greatly appreciated. I've included the code I'm using below.
> 

This is because you are freeing things up twice. X509_get_subject_name()
returns an internal pointer in the X509 structure. As such you shouldn't
free it up because X509_free() will do that.

Similarly with X509_NAME_get_entry().

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to