On Fri, Jun 05, 2009, ronald braswell wrote:

> I am getting a core dump from d2i in the following code.  The offending
> line is:
> 
> *val = meth->i2v( meth, meth->d2i( NULL, &data, ext->value->length ), NULL
> );*
> 
> I am running the 0.9.8k version of openssl compiled for shared objects,
> 32bit.
> 
> Can anyone spot what I am doing wrong?   Has anyone else run across this
> problem?
> 

Yes, you are messing around in internals which applications shouldn't touch.
The "d2i" function pointer is NULL in many cases now.

It looks like you want the DNSName part of subject alternative name. Well for
that you can use X509_get_ext_d2i() to get a GENERAL_NAMES structure and then
look through that.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to