Konstantin Agouros wrote:
> 
> Hi,
> 
> since I am tired of wandering through the sources without directions:
> Can someone tell me how I cat get just the CN of the subject of a certificate
> in a verify-callback. (And no I don't want to use the X509_NAME_online and
> the fiddle in that string unless it is the only option, which I don't believe).
> 

Have a look at how get_email() works in crypto/x509v3/v3_utl.c, this
looks up the email address from a subject name by calling the stuff in
crypto/x509/x509name.c . Things can be a bit trickier for CN if the
string is a BMPString.

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
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to