Hi, I must have an old version of OpenSSL. In fact, I was looking for a function with a name similar to what you pointed out. I had found a function called OBJ_txt2nid(), so I figured there would be a OBJ_nid2txt() function or something similar. I looked in objects.h under crypto/objects directory. Is that where it's supposed to be? I'm missing that function. Thanks for your help, though. I really appreciate it. Peter K. > -----Original Message----- > From: Dr S N Henson [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 23, 2001 3:03 PM > To: [EMAIL PROTECTED] > Subject: Re: obtaining OID strings for DN components from a request? > > > > > "Kim, Peter" wrote: > > > > Is there a way to get the OID strings corresponding to > subject DN components > > (one at a time) from an X509_REQ object? > > I can only get NID, not OID, right now. I need the OID > ("xx.xx.xx.xx", > > etc.) string. > > > > Yes, OBJ_obj2txt(). This takes an ASN1_OBJECT structure: the last > parameter (called 'no_name' in the headers) if set to 1 will always > return the numberical OID even if it has a short or long name. > > If you have a NID then you can convert to an ASN1_OBJECT using > OBJ_nid2obj() first. > > 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] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]