Thank you for response, The function OBJ_obj2txt () expects the buffer length as a second argument.Is it possible to determine the length of an extension from given certificate to pass it to that function?
Arsen. Dr. Stephen Henson wrote:
On Fri, Jul 22, 2005, Arsen Hayrapetyan wrote:Hello,I have a certificate in a X509 structure pointed by "cert" pointer (X509* cert =...). I've got a number of used extensions with X509_get_ext_count and values of extensions (one by one) with X509_get_ext. The problem is that I can't get the names of that extensions, I obtain only values. Is there a function that can list the names of extensions incuded in a given certificate?Also is there a function which lists all extensions supported by current release of a given distribution of OpenSSL?You can get the OID associated with an extension with X509_EXTENSION_get_object() and from that using (for example) OBJ_obj2txt() a human readable name. There isn't a function that lists extensions currently "supported" by OpenSSL. Some extensions are only partly "supported" in that some can only be printed out, others printed out and set from a config file but not checked during certificate verify. 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 User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
smime.p7s
Description: S/MIME Cryptographic Signature
