Salz, Rich wrote:
> 
> >> I have an ASN1_OBJECT, which in this case is an OID.
> >> How do I get a string out, like "1.2.4.122334.69" ?
> >
> >i2t_ASN1_OBJECT() ?
> 
> No because that gives preference to a user-friendly name, which
> of course isn't guaranteed to be unique.
> 
> The answer appears to be that I will have to clone the "if the NID is undef"
> part of i2t_ASN1_OBJECT and put it in my own routine.
>         /r$

Or do an "evil hack". Save the value of obj->nid then set it to
NID_undef while you call i2t_ASN1_OBJECT then restore afterwards. 

There should be a function to do what you want directly and I regard it
as an omission... I'll look into adding something.

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

Reply via email to