Re: get x509 common name

2009-06-12 Thread Victor Duchovni
On Sat, Jun 13, 2009 at 11:14:30AM +1000, Tim Hudson wrote: > Martin Kaiser wrote: >> Hi Jerry, >> Thus wrote Jerry Wang (jerry...@gmail.com): >>> Does OpenSSL have a function for getting the common name from a X509 >>> certificate? >> how about something like >> X509 *cert; >> X509_NAME *subjectN

Re: get x509 common name

2009-06-12 Thread Tim Hudson
Martin Kaiser wrote: Hi Jerry, Thus wrote Jerry Wang (jerry...@gmail.com): Does OpenSSL have a function for getting the common name from a X509 certificate? how about something like X509 *cert; X509_NAME *subjectName; char subjectCn[256]; subjectName = X509_get_subject_name(cert); X50

Re: get x509 common name

2009-06-10 Thread Martin Kaiser
Hi Jerry, Thus wrote Jerry Wang (jerry...@gmail.com): > Does OpenSSL have a function for getting the common name from a X509 > certificate? how about something like X509 *cert; X509_NAME *subjectName; char subjectCn[256]; subjectName = X509_get_subject_name(cert); X509_NAME_get_text_by_NID

get x509 common name

2009-06-09 Thread Jerry Wang
Hi, Does OpenSSL have a function for getting the common name from a X509 certificate? Thanks, Jerry