On Tue, Nov 25, 2003, Bommareddy, Satish (Satish) wrote: > Is there an equivalent API to do exactly the opposite of what > X509_NAME_oneline() does? if i have a issuer name in the form of a string, > is there an API which will give me a pointer to/update the X509_NAME object? >
Not the exact opposite no. X509_NAME_oneline() (which is deprecated BTW) loses some information when it prints out an X509_NAME structure, specifically the string types of the components. The nearest is X509_NAME_add_entry_by_txt() which will add a single compoent given the name and value text representations. So you'd have to split up a string into its components and call that on each in turn. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]