"Hellan,Kim KHE" wrote:
>
> I have a certificate with an X509v3 Certificate Policies extension.
> That extension contains a PolicyIdentifier "field" from which I want to
> extract the value.
>
> OpenSSL sees the X509v3 Certificate Policies extension as a "raw" extension,
> but how do I extract "field" values (like PolicyIdentifier or UserNotice)
> from such an extension?
>
You do this the same as any other extension. Use X509_get_ext_d2i(), see
the docs in doc/openssl.txt and the definitions of the relevant
structures in crypto/x509v3/x509v3.h
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]