Re: How to extract subjectAltName

2008-06-18 Thread delcour.pierre
Gerhard Gappmeier wrote: Hi, I try to read subjectAltName, but ASN1_STRING_to_UTF8 seems not to work. For the X509_NAME entries the same procedure works, but this ASN1_STRING seems to be different. In the debugger I can already see the ASN1_STRING: pString->length = 43 pString->type = 4 pString

Re: How to extract subjectAltName

2008-06-18 Thread markgray111
thank you so much for the help i hope that the info i just sent works!   thank you -Original Message- From: [EMAIL PROTECTED] To: openssl-users@openssl.org Sent: Wed, 18 Jun 2008 1:26 am Subject: Re: How to extract subjectAltName i have    n o t    one idea

Re: How to extract subjectAltName

2008-06-18 Thread Goetz Babin-Ebell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhard Gappmeier wrote: | Thanks for that tip. | | It works now this way: | | UaPkiCertificateInfo UaPkiCertificate::info() const | { [...] | switch ( pName->type ) | { | case GEN_OTHERNAME: |

Re: How to extract subjectAltName

2008-06-18 Thread markgray111
rhard Gappmeier <[EMAIL PROTECTED]> To: openssl-users@openssl.org Sent: Wed, 18 Jun 2008 1:09 am Subject: Re: How to extract subjectAltName Thanks for that tip. It works now this way: UaPkiCertificateInfo UaPkiCertificate::info() const { UaPkiCertificateInfo ret; X509_EXTE

Re: How to extract subjectAltName

2008-06-18 Thread Gerhard Gappmeier
Thanks for that tip. It works now this way: UaPkiCertificateInfo UaPkiCertificate::info() const { UaPkiCertificateInfo ret; X509_EXTENSION *pExt; char *pBuffer = 0; int length = 0; GENERAL_NAMES *subjectAltNames; subjectAltNames = ( GENERAL_NAMES* ) X509_get_ext_d2i ( m_p

Re: How to extract subjectAltName

2008-06-17 Thread Goetz Babin-Ebell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhard Gappmeier wrote: | Hi, Hello Gerhard, | I try to read subjectAltName, but ASN1_STRING_to_UTF8 seems not to work. | For the X509_NAME entries the same procedure works, | but this ASN1_STRING seems to be different. That is because only in the s